Commit bf00df79 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files Admins can add groups to any group

parent 15735180
......@@ -18,6 +18,9 @@ def index():
## return an html form to add a group
def add():
if auth.is_admin():
groups = db(db.auth_group).select()
groups = auth.get_user_groups()
return dict(message=T('New group'), groups=groups)
Supports Markdown
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