1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:34:03 +00:00

Merge remote-tracking branch 'origin/rls-fix-for-central-user-without-bypassrls' into rls-fix-for-central-user-without-bypassrls

This commit is contained in:
Justin van Elst 2025-01-09 10:54:30 +01:00
commit 5e65ceb249
No known key found for this signature in database

View file

@ -26,7 +26,7 @@ class TableRLSManager implements RLSPolicyManager
foreach ($trees ?: $this->shortestPaths() as $table => $path) { foreach ($trees ?: $this->shortestPaths() as $table => $path) {
$queries[$table] = [ $queries[$table] = [
'tenant' => $this->generateQuery($table, $path), 'tenant' => $this->generateQuery($table, $path),
'central' => "CREATE POLICY {$table}_central_rls_policy ON {$table} AS PERMISSIVE TO {$centralUserName} USING (true);" 'central' => "CREATE POLICY {$table}_central_rls_policy ON {$table} AS PERMISSIVE TO {$centralUserName} USING (true);",
]; ];
} }