mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-16 06:09:09 +00:00
FIX: unitary permitting
This commit is contained in:
@@ -196,6 +196,8 @@ export class CatalogController {
|
||||
|
||||
const dashboard = res.dashboard;
|
||||
|
||||
if (dashboard.owner === user_id) has_permission = true;
|
||||
|
||||
for (const role of user_roles) {
|
||||
if (dashboard.p_roles.includes(role)) has_permission = true;
|
||||
}
|
||||
@@ -248,6 +250,8 @@ export class CatalogController {
|
||||
);
|
||||
const table = res[0];
|
||||
|
||||
if (table.owner === user_id) has_permission = true;
|
||||
|
||||
for (const role of user_roles) {
|
||||
if (table.p_roles.includes(role)) has_permission = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user