diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-04-11 19:36:56 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-04-11 19:36:56 +0300 |
commit | 525ea066877d82d3a3ed0ed0025866753b794290 (patch) | |
tree | bb3809f055c4b70d499b807e11c1547f970d7330 /app/policies | |
parent | c6701fef0e2082e1adae15adb97c75311115617f (diff) |
Move permission to create subgroup into GroupPolicy
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/group_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb index 4cc21696eb6..556ea3a8c72 100644 --- a/app/policies/group_policy.rb +++ b/app/policies/group_policy.rb @@ -28,6 +28,7 @@ class GroupPolicy < BasePolicy can! :admin_namespace can! :admin_group_member can! :change_visibility_level + can! :create_subgroup if @user.can_create_group end if globally_viewable && @subject.request_access_enabled && !member |