diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-11 19:57:52 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 19:58:26 +0300 |
commit | bdf365e64f35e76ba6d9a372111ce502db11827e (patch) | |
tree | 20438baa7bbeba2838067e2a2b74ebd359ea1ce1 /app/policies/project_label_policy.rb | |
parent | f98e97fe78dce11a1f88c3961be402d179e63927 (diff) |
Use delegate! on group and project labels policies
Diffstat (limited to 'app/policies/project_label_policy.rb')
-rw-r--r-- | app/policies/project_label_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/project_label_policy.rb b/app/policies/project_label_policy.rb index e7bd58372a6..b12b4c5166b 100644 --- a/app/policies/project_label_policy.rb +++ b/app/policies/project_label_policy.rb @@ -1,5 +1,5 @@ class ProjectLabelPolicy < BasePolicy def rules - can! :admin_label if Ability.allowed?(@user, :admin_label, @subject.project) + delegate! @subject.project end end |