Commit c603cd94 authored by jplang's avatar jplang
Browse files

Same permission for editing the issue and its attachments.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 5c6e0d26
......@@ -182,6 +182,11 @@ class Issue < ActiveRecord::Base
user_tracker_permission?(user, :edit_issues)
# Overrides Redmine::Acts::Attachable::InstanceMethods#attachments_editable?
def attachments_editable?(user=User.current)
# Returns true if user or current user is allowed to add notes to the issue
def notes_addable?(user=User.current)
user_tracker_permission?(user, :add_issue_notes)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment