Skip to content

Commit

Permalink
Switch GetCurrentRoleId to GetUserId
Browse files Browse the repository at this point in the history
  • Loading branch information
save-buffer committed Jan 24, 2024
1 parent 7be4a52 commit cf30276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/commands/publicationcmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ static bool
is_neon_superuser(void)
{
Oid neon_superuser_oid = get_role_oid("neon_superuser", true /*missing_ok*/);
return neon_superuser_oid != InvalidOid && has_privs_of_role(GetCurrentRoleId(), neon_superuser_oid);
return neon_superuser_oid != InvalidOid && has_privs_of_role(GetUserId(), neon_superuser_oid);
}

/*
Expand Down

0 comments on commit cf30276

Please sign in to comment.