@tmlmobilidade/interfaces 20251008.1352.27-staging.0 → 20251009.1044.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,7 +93,7 @@ class NotificationsClass extends MongoCollectionClass {
|
|
|
93
93
|
const rolePermissions = rolesWithTopic
|
|
94
94
|
.filter(role => user.role_ids?.includes(role._id))
|
|
95
95
|
.flatMap(role => role.permissions ?? []);
|
|
96
|
-
const allPermissions = [...(user.permissions ?? [])
|
|
96
|
+
const allPermissions = [...rolePermissions, ...(user.permissions ?? [])];
|
|
97
97
|
const map = new Map();
|
|
98
98
|
for (const permission of allPermissions) {
|
|
99
99
|
const key = `${permission.scope}:${permission.action}`;
|
package/package.json
CHANGED