Fix permission problem with changing issue status
This commit is contained in:
parent
61225cafe2
commit
37f2cd8965
@ -5,7 +5,7 @@ Changelog
|
||||
++++++
|
||||
|
||||
- Change status is now compatible with redmine_agile
|
||||
|
||||
- Do not show sidebar for changing status, if edit_closed_issues permission is missing
|
||||
|
||||
2.0.13
|
||||
++++++
|
||||
|
@ -1,4 +1,7 @@
|
||||
- if Additionals.setting?(:issue_change_status_in_sidebar) && @issue && User.current.allowed_to?(:edit_issues, @project)
|
||||
- if Additionals.setting?(:issue_change_status_in_sidebar) && \
|
||||
@issue && \
|
||||
User.current.allowed_to?(:edit_issues, @project) && \
|
||||
User.current.allowed_to?(:edit_closed_issues, @project)
|
||||
- statuses = @issue.new_statuses_allowed_to(User.current)
|
||||
- if statuses.present?
|
||||
h3 = l(:label_issue_change_status)
|
||||
|
Loading…
x
Reference in New Issue
Block a user