Do not get the user with all the tags
MODIFY
src/authorization/Authorizations.ts
src/authorization/Authorizations.ts
@@ -778,7 +778,9 @@ export default class Authorizations {
});
}
// Check User
- const user = await UserStorage.getUser(tenantID, tag.user.id, { withTag: true });
+ const user = await UserStorage.getUser(tenantID, tag.user.id);
+ // Repush the tag in user
+ user.tags = [tag];
// User status
if (user.status !== UserStatus.ACTIVE) {
// Reject but save ok

Do not get the user with all the tags