parameters: (self, request, agora, **kwargs)
return_statement: return self.create_response(request,
              dict(permissions=agora.get_perms(user)))
docstring: Returns the permissions the user that requested it has
docstring_summary: Returns the permissions the user that requested it has
docstring_tokens: Returns the permissions the user that requested it has
function: def get_permissions_action(self, request, agora, **kwargs):
          '''
          Returns the permissions the user that requested it has
          '''
          user = request.user
          if 'userid' in kwargs:
              if not agora.has_perms('admin', request.user):
                  return self.create_response(request,
                      dict(permissions=[]))
              user = get_object_or_404(User, id=kwargs['userid'])
  
          return self.create_response(request,
              dict(permissions=agora.get_perms(user)))
function_tokens: def get_permissions_action ( self , request , agora , * * kwargs ) : user = request . user if 'userid' in kwargs : if not agora . has_perms ( 'admin' , request . user ) : return self . create_response ( request , dict ( permissions = [ ] ) ) user = get_object_or_404 ( User , id = kwargs [ 'userid' ] ) return self . create_response ( request , dict ( permissions = agora . get_perms ( user ) ) )