@@ -103,7 +103,7 @@ export class AdminService {
|
||||
|
||||
// Update role if roleId is provided
|
||||
if (roleId) {
|
||||
const role = await this.em.findOne(Role, { id: roleId, isSystem: false });
|
||||
const role = await this.em.findOne(Role, { id: roleId });
|
||||
if (!role) {
|
||||
throw new NotFoundException('Role not found');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user