additionals/app/views/context_menus/_additionals_closed_issues.html.slim
2020-09-02 14:26:28 +02:00

14 lines
373 B
Plaintext

ruby:
if Additionals.setting?(:issue_freezed_with_close) &&
!User.current.allowed_to?(:edit_closed_issues, project) &&
@issues.detect(&:closed?)
@safe_attributes = []
@can[:edit] = false
@can[:edit] = false
@allowed_statuses = nil
@trackers = nil
@can[:add_watchers] = nil
@can[:delete] = nil
@options_by_custom_field = []
end