Skip to content

Commit 026bcc4

Browse files
committed
Same permission for editing the issue and its attachments.
git-svn-id: http://svn.redmine.org/redmine/trunk@15476 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent c87783d commit 026bcc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/models/issue.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ def attributes_editable?(user=User.current)
182182
user_tracker_permission?(user, :edit_issues)
183183
end
184184

185+
# Overrides Redmine::Acts::Attachable::InstanceMethods#attachments_editable?
186+
def attachments_editable?(user=User.current)
187+
attributes_editable?(user)
188+
end
189+
185190
# Returns true if user or current user is allowed to add notes to the issue
186191
def notes_addable?(user=User.current)
187192
user_tracker_permission?(user, :add_issue_notes)

0 commit comments

Comments
 (0)