summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-08-26 01:19:10 +0000
committerGo MAEDA <maeda@farend.jp>2022-08-26 01:19:10 +0000
commit7f6d9d3be92d1944cecc011c1213ece7732b9873 (patch)
treebf9b79424928a262643b0a0eb71daf50d1cb875a /app
parent11ed1784f45448cf695b497388cd8f8782a6e757 (diff)
downloadredmine-7f6d9d3be92d1944cecc011c1213ece7732b9873.tar.gz
redmine-7f6d9d3be92d1944cecc011c1213ece7732b9873.zip
Check visibility for passed user in IssueQuery.default (#37499, #37608).
Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@21781 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/issue_query.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb
index aa8dc9034..205084074 100644
--- a/app/models/issue_query.rb
+++ b/app/models/issue_query.rb
@@ -81,7 +81,7 @@ class IssueQuery < Query
# user default
if user&.logged? && (query_id = user.pref.default_issue_query).present?
query = find_by(id: query_id)
- return query if query&.visible?
+ return query if query&.visible?(user)
end
# project default