diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-02 11:00:08 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-10-02 11:00:08 +0000 |
commit | d4f57cc2fa8227a1ee9cb6ee74bddfcc664dd47a (patch) | |
tree | 30b9f1c8c4ab1b7988db62ba57846432554003e9 /app | |
parent | 51227270bda4c3cd4de6fc26a94893b5ff25699c (diff) | |
download | redmine-d4f57cc2fa8227a1ee9cb6ee74bddfcc664dd47a.tar.gz redmine-d4f57cc2fa8227a1ee9cb6ee74bddfcc664dd47a.zip |
Edit/delete links displayed on issue even if project is closed (#23969).
git-svn-id: http://svn.redmine.org/redmine/trunk@15879 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/issue.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index aca55775e..92cfad395 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1436,6 +1436,11 @@ class Issue < ActiveRecord::Base private def user_tracker_permission?(user, permission) + if project && !project.active? + perm = Redmine::AccessControl.permission(permission) + return false unless perm && perm.read? + end + if user.admin? true else |