mirror of
https://github.com/postgres/postgres.git
synced 2025-10-29 22:49:41 +03:00
Revert "Use a bitmask to represent role attributes"
This reverts commit 1826987a46.
The overall design was deemed unacceptable, in discussion following the
previous commit message; we might find some parts of it still
salvageable, but I don't want to be on the hook for fixing it, so let's
wait until we have a new patch.
This commit is contained in:
@@ -521,7 +521,7 @@ check_enable_rls(Oid relid, Oid checkAsUser)
|
||||
*/
|
||||
if (!checkAsUser && row_security == ROW_SECURITY_OFF)
|
||||
{
|
||||
if (has_role_attribute(user_id, ROLE_ATTR_BYPASSRLS))
|
||||
if (has_bypassrls_privilege(user_id))
|
||||
/* OK to bypass */
|
||||
return RLS_NONE_ENV;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user