fix: Prevent deactivated users from receiving socket events when possible
This commit is contained in:
+1
@@ -14,6 +14,7 @@ module.exports = {
|
||||
async fn(inputs) {
|
||||
const users = await User.qm.getAll({
|
||||
roleOrRoles: inputs.roleOrRoles,
|
||||
isDeactivated: false,
|
||||
});
|
||||
|
||||
return sails.helpers.utils.mapRecords(users);
|
||||
@@ -28,6 +28,7 @@ class Scoper {
|
||||
if (!this.separatedUserIds) {
|
||||
const users = await User.qm.getAll({
|
||||
roleOrRoles: [User.Roles.ADMIN, User.Roles.PROJECT_OWNER],
|
||||
isDeactivated: false,
|
||||
});
|
||||
|
||||
const adminUserIds = [];
|
||||
|
||||
Reference in New Issue
Block a user