Skip to content

Commit d4eeba9

Browse files
save-buffertristan957
authored andcommitted
Switch GetCurrentRoleId to GetUserId
1 parent d88acb5 commit d4eeba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/publicationcmds.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ static bool
732732
is_neon_superuser(void)
733733
{
734734
Oid neon_superuser_oid = get_role_oid("neon_superuser", true /*missing_ok*/);
735-
return neon_superuser_oid != InvalidOid && has_privs_of_role(GetCurrentRoleId(), neon_superuser_oid);
735+
return neon_superuser_oid != InvalidOid && has_privs_of_role(GetUserId(), neon_superuser_oid);
736736
}
737737

738738
/*

0 commit comments

Comments
 (0)