Commit 060324bb6220bb3e4242e7fa4e4c009a31cb516e
1 parent
1f3d0345
Exists in
master
and in
3 other branches
Modification vue matériel par un responsable
Ajout de toutes les options d'edition, de suppression, d'envoi de mail... sur les matériels qu'un responsable a créé
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/Template/Materiels/view.ctp
... | ... | @@ -255,7 +255,7 @@ $panne = h($materiel->hors_service) ? ' (HORS SERVICE)' : ''; |
255 | 255 | } |
256 | 256 | |
257 | 257 | // BOUTON "Lier un Doc" |
258 | - if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP) { | |
258 | + if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP || $USER_IS_RESPONSABLE_AND_CREATOR_OR_OWNER ) { | |
259 | 259 | /* |
260 | 260 | * if ( |
261 | 261 | * in_array($role, ['Administration','Administration Plus','Super Administrateur']) |
... | ... | @@ -660,7 +660,7 @@ if ($USER_IS_ADMIN_OR_MORE) { |
660 | 660 | <tr> |
661 | 661 | <td class="actions" style="padding: 6px 0; text-align: left;"> |
662 | 662 | <?php |
663 | - if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP) { | |
663 | + if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP || $USER_IS_RESPONSABLE_AND_CREATOR_OR_OWNER) { | |
664 | 664 | /* |
665 | 665 | * if ( |
666 | 666 | * in_array($role, ['Administration','Administration Plus','Super Administrateur']) |
... | ... | @@ -767,7 +767,7 @@ foreach ($materiel->emprunts as $emprunt) : |
767 | 767 | <tr> |
768 | 768 | <td class="actions" style="padding: 6px 0; text-align: left;"> |
769 | 769 | <?php |
770 | - if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP) { | |
770 | + if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP || $USER_IS_RESPONSABLE_AND_CREATOR_OR_OWNER) { | |
771 | 771 | /* |
772 | 772 | * if ( |
773 | 773 | * in_array($role, ['Administration','Administration Plus','Super Administrateur']) |
... | ... | @@ -873,7 +873,7 @@ foreach ($materiel->emprunts as $emprunt) : |
873 | 873 | 'escape' => false |
874 | 874 | ]); |
875 | 875 | } |
876 | - if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP) { | |
876 | + if ($USER_IS_ADMIN_OR_MORE || $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER || $USER_IS_RESPONSABLE_AND_SAME_GROUP || $USER_IS_RESPONSABLE_AND_CREATOR_OR_OWNER ) { | |
877 | 877 | /* |
878 | 878 | * if ( |
879 | 879 | * in_array($role, ['Administration','Administration Plus','Super Administrateur']) | ... | ... |