forked from ZwiiCMS-Team/ZwiiCMS
permission accordée à l'autorité
This commit is contained in:
parent
6477265a8a
commit
63f1c6844f
@ -306,8 +306,12 @@ class blog extends common {
|
|||||||
foreach ($articleIds as $key => $value) {
|
foreach ($articleIds as $key => $value) {
|
||||||
if (
|
if (
|
||||||
( // Propriétaire
|
( // Propriétaire
|
||||||
|
(
|
||||||
$this->getData(['module', $this->getUrl(0), $value,'editConsent']) === self::EDIT_OWNER
|
$this->getData(['module', $this->getUrl(0), $value,'editConsent']) === self::EDIT_OWNER
|
||||||
AND $this->getData(['module', $this->getUrl(0), $value,'userId']) === $this->getUser('id')
|
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'])
|
||||||
|
|
||||||
) OR (
|
) OR (
|
||||||
// Groupe
|
// Groupe
|
||||||
$this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) !== self::EDIT_OWNER
|
$this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) !== self::EDIT_OWNER
|
||||||
|
@ -11,8 +11,11 @@
|
|||||||
$this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
|
$this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
|
||||||
AND
|
AND
|
||||||
( // Propriétaire
|
( // Propriétaire
|
||||||
|
(
|
||||||
$this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) === $module::EDIT_OWNER
|
$this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) === $module::EDIT_OWNER
|
||||||
AND $this->getData(['module', $this->getUrl(0), $this->getUrl(1),'userId']) === $this->getUser('id')
|
AND $this->getData(['module', $this->getUrl(0), $this->getUrl(1),'userId']) === $this->getUser('id')
|
||||||
|
) // Ou une autorité
|
||||||
|
OR $this->getUser('group') > $this->getData(['module',$this->getUrl(0), $value,'editConsent'])
|
||||||
) OR (
|
) OR (
|
||||||
// Groupe
|
// Groupe
|
||||||
$this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) !== $module::EDIT_OWNER
|
$this->getData(['module', $this->getUrl(0), $this->getUrl(1),'editConsent']) !== $module::EDIT_OWNER
|
||||||
|
Loading…
Reference in New Issue
Block a user