diff --git a/src/modules/catalog/catalog.controller.ts b/src/modules/catalog/catalog.controller.ts index d539008..edc6eaf 100644 --- a/src/modules/catalog/catalog.controller.ts +++ b/src/modules/catalog/catalog.controller.ts @@ -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; }