Solved no uoa link issue
This commit is contained in:
parent
901e83e87a
commit
0f381af573
|
|
@ -168,7 +168,12 @@ class UserController extends AbstractController
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// Calcul du flag de modification : utilisateur admin ET exactement 1 UO
|
// Calcul du flag de modification : utilisateur admin ET exactement 1 UO
|
||||||
|
if (empty($uoa)){
|
||||||
|
$canEdit = false;
|
||||||
|
}else{
|
||||||
$canEdit = $this->userService->canEditRolesCheck($actingUser, $user, $this->isGranted('ROLE_ADMIN'), $singleUo, $organization);
|
$canEdit = $this->userService->canEditRolesCheck($actingUser, $user, $this->isGranted('ROLE_ADMIN'), $singleUo, $organization);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->loggerService->logError('error while loading user information', [
|
$this->loggerService->logError('error while loading user information', [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue