Browse Source

[Administration] Affiche de la nouvelle version de Souke uniquement pour les administrateurs

feature/rotating_product
Guillaume Bourgeois 5 months ago
parent
commit
b9ff620fa8
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      backend/views/layouts/content.php

+ 6
- 1
backend/views/layouts/content.php View File

$producerModule = $this->getProducerModule(); $producerModule = $this->getProducerModule();
$adminSettingBag = $this->getSettingModule()->getAdminSettingBag(); $adminSettingBag = $this->getSettingModule()->getAdminSettingBag();
$sharedPointSaleModule = $this->getSharedPointSaleModule(); $sharedPointSaleModule = $this->getSharedPointSaleModule();
$userModule = $this->getUserModule();
$userCurrent = GlobalParam::getCurrentUser();
$producer = GlobalParam::getCurrentProducer(); $producer = GlobalParam::getCurrentProducer();


?> ?>
]) ?> ]) ?>


<?php $producer = GlobalParam::getCurrentProducer(); ?> <?php $producer = GlobalParam::getCurrentProducer(); ?>
<?php if($producer && !$producerModule->isUpToDateWithOpendistribVersion($producer) && $producer->option_display_message_new_opendistrib_version): ?>
<?php if($producer
&& !$producerModule->isUpToDateWithOpendistribVersion($producer)
&& $producer->option_display_message_new_opendistrib_version
&& !$userModule->getAuthorizationChecker()->isGrantedAsAdministrator($userCurrent)): ?>
<div class="alert alert-success"> <div class="alert alert-success">
<p> <p>
<i class="icon fa fa-cogs"></i> <i class="icon fa fa-cogs"></i>

Loading…
Cancel
Save