diff --git a/module/news/news.php b/module/news/news.php index 79a491f3..b3896b31 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -15,7 +15,7 @@ class news extends common { - const VERSION = '2.2'; + const VERSION = '2.3'; const REALNAME = 'Actualités'; const DELETE = true; const UPDATE = '0.0'; @@ -304,6 +304,7 @@ class news extends common { // News en fonction de la pagination for($i = $pagination['first']; $i < $pagination['last']; $i++) { self::$news[$newsIds[$i]] = $this->getData(['module', $this->getUrl(0),'posts', $newsIds[$i]]); + self::$news[$newsIds[$i]]['userId'] = $this->signature($this->getData(['module', $this->getUrl(0), 'posts', $newsIds[$i], 'userId'])); } // Valeurs en sortie $this->addOutput([ diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index f0385673..084b370f 100755 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -15,10 +15,10 @@ - - getData(['user', $news['userId'], 'firstname']) . ' ' . $this->getData(['user', $news['userId'], 'lastname']); ?> + - getUser('password') === $this->getInput('ZWII_USER_PASSWORD') AND ( // Propriétaire @@ -40,7 +40,7 @@
- ' . $this->getData(['module',$this->getUrl(0), 'config', 'feedsLabel']) . '

' ; ?>