Skip to content

Commit

Permalink
MG-2241 - Fix list domains with permission as query parameter (absmac…
Browse files Browse the repository at this point in the history
…h#2355)

Signed-off-by: nyagamunene <[email protected]>
  • Loading branch information
nyagamunene authored Jul 22, 2024
1 parent c398908 commit 0e3dbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth/postgres/domains.go
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ func buildPageQuery(pm auth.Page) (string, error) {
query = append(query, "pc.subject_id = :subject_id")
}

if pm.Permission != "" {
if pm.Permission != "" && pm.SubjectID != "" {
query = append(query, "pc.relation = :permission")
}

Expand Down

0 comments on commit 0e3dbf6

Please sign in to comment.