fix: Prevent deactivated users from receiving socket events when possible

This commit is contained in:
Maksim Eltyshev
2026-01-23 19:38:58 +01:00
parent 6ec0bafecb
commit 267fce0505
6 changed files with 8 additions and 4 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class Scoper {
async getAdminUserIds() {
if (!this.adminUserIds) {
this.adminUserIds = await sails.helpers.users.getAllIds(User.Roles.ADMIN);
this.adminUserIds = await sails.helpers.users.getAllActiveIds(User.Roles.ADMIN);
}
return this.adminUserIds;