code: def get_user_roles(self):
          
          if self.is_anonymous_user():
              return []
          current_user = ploneapi.user.get_current()
          return ploneapi.user.get_roles(user=current_user)
docs: Returns a list of roles for the current user