diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index a450c23..c4747a2 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -76,8 +76,8 @@ class gallery extends common { // Mettre à jour la version $this->setData(['module',$this->getUrl(0),'config', 'versionData', '4.0' ]); } - if (version_compare($versionData, '4.1', '<') ) { - $this->setData(['module',$this->getUrl(0),'config', 'versionData', '4.1' ]); + if (version_compare($versionData, '4.2', '<') ) { + $this->setData(['module',$this->getUrl(0),'config', 'versionData', '4.2' ]); } } @@ -267,7 +267,8 @@ class gallery extends common { template::button('galleryConfigDelete' . $galleryId, [ 'class' => 'galleryConfigDelete buttonRed', 'href' => helper::baseUrl() . $this->getUrl(0) . '/delete/' . $galleryId . '/' . $_SESSION['csrf'], - 'value' => template::ico('cancel') + 'value' => template::ico('cancel'), + 'disabled' => $this->getUser('group') >= self::GROUP_MODERATOR ? false : true ]) ]; // Tableau des id des galleries pour le drag and drop diff --git a/module/gallery/view/config/config.php b/module/gallery/view/config/config.php index 52ba42b..53f17a8 100644 --- a/module/gallery/view/config/config.php +++ b/module/gallery/view/config/config.php @@ -13,10 +13,10 @@ echo template::formOpen('galleryConfigForm'); ?> 'value' => $text['gallery_view']['config'][0] ]); ?> -