##// END OF EJS Templates
Same permission for editing the issue and its attachments....
Jean-Philippe Lang -
r15094:026bcc423613
parent child
Show More
@@ -182,6 +182,11 class Issue < ActiveRecord::Base
182 182 user_tracker_permission?(user, :edit_issues)
183 183 end
184 184
185 # Overrides Redmine::Acts::Attachable::InstanceMethods#attachments_editable?
186 def attachments_editable?(user=User.current)
187 attributes_editable?(user)
188 end
189
185 190 # Returns true if user or current user is allowed to add notes to the issue
186 191 def notes_addable?(user=User.current)
187 192 user_tracker_permission?(user, :add_issue_notes)
General Comments 0
You need to be logged in to leave comments. Login now