Commit c6f0fe2c authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : condition pour l'affichage du bouton d'édition

parent 31a58e0c
......@@ -116,17 +116,17 @@ if (!empty($typages)) {
<div class="btn-group">
<?php
if ($this->Session->read('Su') || $typage['Typage']['createdbyorganisation'] == $this->Session->read('Organisation.id')) {
if (empty($organisations) === true) {
echo $this->Html->link('<span class="fa fa-pencil fa-lg"><!----></span>', [
'controller' => 'typages',
'action' => 'edit',
$typage['Typage']['id']
], [
'class' => 'btn btn-default-default btn-sm my-tooltip',
'title' => __d('typage', 'typage.commentaireBtnModifierType'),
'escape' => false,
]);
echo $this->Html->link('<span class="fa fa-pencil fa-lg"><!----></span>', [
'controller' => 'typages',
'action' => 'edit',
$typage['Typage']['id']
], [
'class' => 'btn btn-default-default btn-sm my-tooltip',
'title' => __d('typage', 'typage.commentaireBtnModifierType'),
'escape' => false,
]);
if (empty($organisations) === true) {
echo $this->Html->link('<span class="fa fa-trash fa-lg"><!----></span>', [
'controller' => 'typages',
'action' => 'delete',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment