🐛 Reintegrating condition on office roles
This commit is contained in:
parent
542c568e10
commit
4923284e8b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user