mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 06:54:05 +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:
commit
5e65ceb249
1 changed files with 2 additions and 2 deletions
|
|
@ -24,9 +24,9 @@ class TableRLSManager implements RLSPolicyManager
|
|||
$centralUserName = $this->database->getConfig('username');
|
||||
|
||||
foreach ($trees ?: $this->shortestPaths() as $table => $path) {
|
||||
$queries[$table] =[
|
||||
$queries[$table] = [
|
||||
'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);",
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue