summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-08 07:05:15 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-10-08 07:05:15 +0000
commit52b19aca3c4d7d1e8a08ca901cdfa3dd30478c82 (patch)
tree58d1a3c0f6d4300a3cbd35d81d125d5d207f77c6 /app/models
parent9fa491f9f0a7abb0331bd422e619186e4f86d302 (diff)
downloadredmine-52b19aca3c4d7d1e8a08ca901cdfa3dd30478c82.tar.gz
redmine-52b19aca3c4d7d1e8a08ca901cdfa3dd30478c82.zip
Merged r15879 (#23969).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@15889 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/issue.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 1b9f21631..58d51e139 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -1428,6 +1428,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