From c2c33357f61bd6882ab3e12f3cb7a1549790793b Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 29 Sep 2022 03:35:24 +0000 Subject: [PATCH] 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 --- app/models/issue_query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5