diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-09-20 17:07:56 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:24 -0200 |
commit | cfedd42badc6b84457d1de35cb31988777462d5a (patch) | |
tree | ca0588b33e11d2f28104b320dcec6884ac148ec8 /app/policies | |
parent | e2dd75c0a2d863c8e530e54f3a0a015bdec1e84f (diff) | |
download | gitlab-ce-cfedd42badc6b84457d1de35cb31988777462d5a.tar.gz |
Add ProjectLabel model
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_label_policy.rb (renamed from app/policies/label_policy.rb) | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/policies/label_policy.rb b/app/policies/project_label_policy.rb index 1677ad7f1bb..e7bd58372a6 100644 --- a/app/policies/label_policy.rb +++ b/app/policies/project_label_policy.rb @@ -1,7 +1,5 @@ -class LabelPolicy < BasePolicy +class ProjectLabelPolicy < BasePolicy def rules - return unless @user - can! :admin_label if Ability.allowed?(@user, :admin_label, @subject.project) end end |