diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-13 16:51:09 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-13 16:51:09 +0300 |
commit | 8c639ac23ce67b763cabf3aed4b020f4b961f9be (patch) | |
tree | 01c747ef3d7d6abbe7b358b1298c0371c832ee9a /app/policies/group_policy.rb | |
parent | 0d04db92efcbe6cb4a28c215d7e5f6762563ba75 (diff) |
Backport hooks on group policies for the EE-specific implementation
Diffstat (limited to 'app/policies/group_policy.rb')
-rw-r--r-- | app/policies/group_policy.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb index b65fb68cd88..6f943feb2a7 100644 --- a/app/policies/group_policy.rb +++ b/app/policies/group_policy.rb @@ -33,6 +33,8 @@ class GroupPolicy < BasePolicy if globally_viewable && @subject.request_access_enabled && !member can! :request_access end + + additional_rules!(master) end def can_read_group? @@ -43,4 +45,8 @@ class GroupPolicy < BasePolicy GroupProjectsFinder.new(@subject).execute(@user).any? end + + def additional_rules!(master) + # This is meant to be overriden in EE + end end |