Merge branch 'dev' of github.com:smart-chain-fr/leCoffre into dev
This commit is contained in:
commit
a3c801da6b
@ -127,10 +127,12 @@ export default class UsersController extends ApiController {
|
|||||||
this.httpBadRequest(response, "Office role not found");
|
this.httpBadRequest(response, "Office role not found");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (officeRole.office_uid != userFound.office_uid) {
|
|
||||||
this.httpBadRequest(response, "Cannot assign an office role from another office");
|
// Not needed if you're super admin you can assign every roles from every offices
|
||||||
return;
|
// if (officeRole.office_uid != userFound.office_uid) {
|
||||||
}
|
// this.httpBadRequest(response, "Cannot assign an office role from another office");
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
//call service to get prisma entity
|
//call service to get prisma entity
|
||||||
|
Loading…
x
Reference in New Issue
Block a user