Patch #37608 ยป 0001-Check-correct-user-in-IssueQuery.default.patch
app/models/issue_query.rb | ||
---|---|---|
81 | 81 |
# user default |
82 | 82 |
if user&.logged? && (query_id = user.pref.default_issue_query).present? |
83 | 83 |
query = find_by(id: query_id) |
84 |
return query if query&.visible? |
|
84 |
return query if query&.visible?(user)
|
|
85 | 85 |
end |
86 | 86 | |
87 | 87 |
# project default |