Skip to content

Commit

Permalink
Merge branch 'develop' into set_members
Browse files Browse the repository at this point in the history
  • Loading branch information
pavish authored Sep 25, 2024
2 parents fde6fa6 + 8a1b6da commit 8127a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/sql/00_msar.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1285,12 +1285,12 @@ privileges are immediately available to current_role without doing SET ROLE.
*/
SELECT jsonb_build_object(
'current_role', msar.get_role(current_role),
'parent_roles', array_remove(
'parent_roles', COALESCE(array_remove(
array_agg(
CASE WHEN pg_has_role(role_data.name, current_role, 'USAGE')
THEN msar.get_role(role_data.name) END
), NULL
)
), ARRAY[]::jsonb[])
)
FROM msar.role_info_table() AS role_data
WHERE role_data.name NOT LIKE 'pg_%'
Expand Down

0 comments on commit 8127a3d

Please sign in to comment.