summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-09-29 03:35:24 +0000
committerGo MAEDA <maeda@farend.jp>2022-09-29 03:35:24 +0000
commitc2c33357f61bd6882ab3e12f3cb7a1549790793b (patch)
tree6a3401d6ce34f57b7cacaa7cdc0d770e6bbc35f2 /app
parent534103f42db71debc38b55126c34e460340b8513 (diff)
downloadredmine-c2c33357f61bd6882ab3e12f3cb7a1549790793b.tar.gz
redmine-c2c33357f61bd6882ab3e12f3cb7a1549790793b.zip
Merged r21781 from trunk to 5.0-stable (#37499, #37608).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21870 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