Commit bf00df79 authored by HERBERT Ryan's avatar HERBERT Ryan

group.py Admins can add groups to any group

parent 15735180
......@@ -17,8 +17,11 @@ def index():
return dict(message=T('Groups'), query=query, count=count)
## return an html form to add a group
def add():
groups = auth.get_user_groups()
def add():
if auth.is_admin():
groups = db(db.auth_group).select()
else:
groups = auth.get_user_groups()
return dict(message=T('New group'), groups=groups)
......
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