Commit c912cabc authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[controller/usermanagement] method to list all groups/projects

parent 98e5fa93
......@@ -395,6 +395,14 @@ class UMAjaxController(AbstractController):
"status"
])
@cherrypy.expose
def user_groups(self):
return [grp.name for grp in cherrypy.request.user.get_groups()]
@cherrypy.expose
def user_projects(self):
return [pro.name for pro in cherrypy.request.user.get_projects()]
@cherrypy.expose
def user_get_groups(self):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment