Skip to content

Commit 8d18a8d

Browse files
save-buffertristan957
authored andcommitted
Switch GetCurrentRoleId to GetUserId
1 parent 940d29b commit 8d18a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/publicationcmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ static bool
731731
is_neon_superuser(void)
732732
{
733733
Oid neon_superuser_oid = get_role_oid("neon_superuser", true /*missing_ok*/);
734-
return neon_superuser_oid != InvalidOid && has_privs_of_role(GetCurrentRoleId(), neon_superuser_oid);
734+
return neon_superuser_oid != InvalidOid && has_privs_of_role(GetUserId(), neon_superuser_oid);
735735
}
736736

737737
/*

0 commit comments

Comments
 (0)