Commit 2634b8fc8d45e00e28803be2ddfe87d9a9becbd0
1 parent
d06d68fa
Exists in
master
and in
3 other branches
modification du case edit afin que le responsable d'un domaine puisse en modifier le matériel
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/Controller/MaterielsController.php
... | ... | @@ -270,8 +270,7 @@ class MaterielsController extends AppController |
270 | 270 | return ($this->isOwnedBy($id, $user['sn'][0] . ' ' . $user['givenname'][0])); |
271 | 271 | break; |
272 | 272 | case 'Responsable': |
273 | - // return ($this->isRespGroup($id, $user[$configuration->authentificationType_ldap][0])); | |
274 | - return ($this->isRespGroup($id, $userCname)); | |
273 | + return ($this->isRespGroup($id, $userCname) || $this->isOwnedBy($id, $user['sn'][0] . ' ' . $user['givenname'][0])); | |
275 | 274 | break; |
276 | 275 | // All other roles : Admin and more |
277 | 276 | default: |
... | ... | @@ -2515,4 +2514,4 @@ class MaterielsController extends AppController |
2515 | 2514 | 'materiel' |
2516 | 2515 | ]); |
2517 | 2516 | } |
2518 | 2517 | -} |
2518 | +} | |
2519 | 2519 | \ No newline at end of file | ... | ... |