Bug bouton bouton éditer avec cookie persistant

This commit is contained in:
Fred Tempez 2020-08-11 08:25:41 +02:00
parent ac15324da5
commit 8ee8229e3f
1 changed files with 5 additions and 1 deletions

View File

@ -6,8 +6,12 @@
à <?php echo utf8_encode(strftime('%H:%M', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?>
</div>
</div>
<?php if($this->getUser('group') >= self::GROUP_ADMIN): ?>
<?php if(
$this->getUser('group') >= self::GROUP_ADMIN
AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
): ?>
<div class="col2">
<?php echo $this->getUser('group'); ?>
<?php echo template::button('blogEdit', [
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'],
'value' => 'Editer'