filtrage config du blog

This commit is contained in:
Fred Tempez 2020-10-14 10:36:27 +02:00
parent e6f75275f2
commit 174e087fc3
2 changed files with 2 additions and 3 deletions

View File

@ -309,8 +309,8 @@ class blog extends common {
(
$this->getData(['module', $this->getUrl(0), $value,'editConsent']) === self::EDIT_OWNER
AND $this->getData(['module', $this->getUrl(0), $value,'userId']) === $this->getUser('id')
) // Ou une autorité
OR $this->getUser('group') > $this->getData(['module',$this->getUrl(0), $value,'editConsent'])
AND $this->getUser('group') >= self::GROUP_EDITOR
)
) OR (
// Groupe

View File

@ -27,7 +27,6 @@
'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'],
'value' => 'Editer'
]); ?>
<?php endif; ?>
</div>
</div>