allow/deny user to create group/team
This commit is contained in:
parent
585a53c415
commit
00e4a479d3
4 changed files with 32 additions and 10 deletions
|
@ -232,7 +232,7 @@ class User < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def can_create_group?
|
||||
can_create_project?
|
||||
can?(:create_group, nil)
|
||||
end
|
||||
|
||||
def abilities
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue