FIX: unitary permitting

This commit is contained in:
Victor Radael
2022-10-04 18:26:27 -03:00
parent 69305610ff
commit 46cafc2d50
@@ -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;
}