summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-20 15:50:11 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:24 -0200
commit32c663ff248f6ad2f2fa10fd2e81d6535fb88fd6 (patch)
treedfa2dbe7044f47b1d3f80979e12364f25308c7ef /app/helpers
parent701544fb48a5add0cc7cbba729e6438d7a040385 (diff)
downloadgitlab-ce-32c663ff248f6ad2f2fa10fd2e81d6535fb88fd6.tar.gz
Use policies to handle with global/project label permissions
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/labels_helper.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb
index 65fc460c670..c14caa5e387 100644
--- a/app/helpers/labels_helper.rb
+++ b/app/helpers/labels_helper.rb
@@ -54,16 +54,6 @@ module LabelsHelper
end
end
- def can_admin_label(label)
- subject =
- case label
- when GroupLabel then label.group
- else label.project
- end
-
- can?(current_user, :admin_label, subject)
- end
-
def edit_label_path(label)
case label
when GroupLabel then edit_group_label_path(label.group, label)