Commit bf00df79 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

group.py Admins can add groups to any group

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