Disable 'check all issues' checkbox for unprivileged users.

This commit is contained in:
Achilleas Pipinellis 2015-01-20 09:16:26 +02:00
parent 2fba31890e
commit 46755a7bfe

View file

@ -1,6 +1,6 @@
.append-bottom-10
.check-all-holder
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left"
= check_box_tag "check_all_issues", nil, false, class: "check_all_issues left", disabled: !can?(current_user, :modify_issue, @project)
= render 'shared/issuable_filter'
.clearfix