Commit 81c861cf authored by Robert Speicher's avatar Robert Speicher Committed by Valery Sizov

Dynamically check `:admin_*` ability on issuable form

Closes #2092
parent 9079f4dd
......@@ -38,7 +38,7 @@
.clearfix
.error-alert
%hr
- if can?(current_user, :admin_issue, @project)
- if can?(current_user, :"admin_#{issuable.to_ability_name}", @project)
.form-group
.issue-assignee
= f.label :assignee_id, class: 'control-label' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment