diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-08-30 08:32:35 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-08-31 08:22:24 -0400 |
commit | 0101f770a05b07dd7a8e05b6f8f95d4e22f4e846 (patch) | |
tree | 9b1525bac172bf736afc43aaa7d2471aecfe1368 /src/backend/utils/adt/jsonfuncs.c | |
parent | c7892c253fdc7bcb99a61e820798588ee4c071b9 (diff) | |
download | postgresql-0101f770a05b07dd7a8e05b6f8f95d4e22f4e846.tar.gz postgresql-0101f770a05b07dd7a8e05b6f8f95d4e22f4e846.zip |
Fix a bug in roles_is_member_of.
Commit e3ce2de09d814f8770b2e3b3c152b7671bcdb83f rearranged this
function to be able to identify which inherited role had admin option
on the target role, but it got the order of operations wrong, causing
the function to return wrong answers in the presence of non-inherited
grants.
Fix that, and add a test case that verifies the correct behavior.
Patch by me, reviewed by Nathan Bossart
Discussion: http://postgr.es/m/CA+TgmoYamnu-xt-u7CqjYWnRiJ6BQaSpYOHXP=r4QGTfd1N_EA@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions