Dynamically check :admin_* ability on issuable form

Closes #2092
This commit is contained in:
Robert Speicher 2015-07-24 15:31:21 -04:00
parent 37bc7bac19
commit e496c35fed

View file

@ -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