Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
bf00df79
Commit
bf00df79
authored
Jun 15, 2016
by
HERBERT Ryan
Browse files
group.py Admins can add groups to any group
parent
15735180
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/controllers/group.py
View file @
bf00df79
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment