Project

General

Profile

Patch #37608 ยป 0001-Check-correct-user-in-IssueQuery.default.patch

Holger Just, 2022-08-25 19:22

View differences:

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
    (1-1/1)