filtrage config du blog

pull/10/head
Fred Tempez 2 years ago
parent e6f75275f2
commit 174e087fc3
  1. 4
      module/blog/blog.php
  2. 1
      module/blog/view/article/article.php

@ -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

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

Loading…
Cancel
Save