🐛 Reintegrating condition on office roles

This commit is contained in:
Maxime Lalo 2023-10-09 11:36:15 +02:00
parent 542c568e10
commit 4923284e8b

View File

@ -128,11 +128,10 @@ export default class UsersController extends ApiController {
return; return;
} }
// Not needed if you're super admin you can assign every roles from every offices if (officeRole.office_uid != userFound.office_uid) {
// if (officeRole.office_uid != userFound.office_uid) { this.httpBadRequest(response, "Cannot assign an office role from another office");
// this.httpBadRequest(response, "Cannot assign an office role from another office"); return;
// return; }
// }
} }
//call service to get prisma entity //call service to get prisma entity