Commit 67f8ee46ec31ae769a21c50dc25b0f6eb501b433
1 parent
c17aad61
Exists in
master
and in
3 other branches
RE-mise en commentaire d'un bloc de définitions de variables déplacées
dans le controleur
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/Template/Materiels/view.ctp
... | ... | @@ -6,6 +6,7 @@ use Cake\ORM\TableRegistry; |
6 | 6 | // EP |
7 | 7 | // Set some useful global variables for this view |
8 | 8 | |
9 | +/* EP => moved to Controller | |
9 | 10 | // 1) Materiel settings |
10 | 11 | |
11 | 12 | const CREATED = 1; |
... | ... | @@ -48,7 +49,7 @@ $USER_IS_ADMINPLUS = ($profile == $PROFILE_ADMINPLUS); |
48 | 49 | $USER_IS_SUPERADMIN = ($profile == $PROFILE_SUPERADMIN); |
49 | 50 | |
50 | 51 | $USER_IS_ADMIN_OR_MORE = $profile >= $PROFILE_ADMIN; |
51 | - | |
52 | +*/ | |
52 | 53 | |
53 | 54 | $USER_IS_UTILISATEUR_AND_CREATOR_OR_OWNER = $USER_IS_UTILISATEUR && in_array($username, [$materiel->nom_createur, $materiel->nom_responsable]); |
54 | 55 | ... | ... |