From 577c3fc25a1bbc43ab05bcd2fe7e89bc17ca231f Mon Sep 17 00:00:00 2001 From: Maximilian Mader Date: Fri, 6 Sep 2013 16:16:55 +0200 Subject: [PATCH] Fix triple-typo ... this should fix the permissions --- file/lib/acp/page/MessageLogDownloadPage.class.php | 2 +- file/lib/acp/page/MessageLogPage.class.php | 2 +- file/lib/data/message/MessageAction.class.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/file/lib/acp/page/MessageLogDownloadPage.class.php b/file/lib/acp/page/MessageLogDownloadPage.class.php index ffce029..47f8152 100644 --- a/file/lib/acp/page/MessageLogDownloadPage.class.php +++ b/file/lib/acp/page/MessageLogDownloadPage.class.php @@ -21,7 +21,7 @@ class MessageLogDownloadPage extends \wcf\page\AbstractPage { * @see \wcf\page\AbstractPage::$neededPermissions */ public $neededPermissions = array( - 'admin.char.canReadLog' + 'admin.chat.canReadLog' ); public $useTemplate = false; diff --git a/file/lib/acp/page/MessageLogPage.class.php b/file/lib/acp/page/MessageLogPage.class.php index 43d4f7a..74a645b 100644 --- a/file/lib/acp/page/MessageLogPage.class.php +++ b/file/lib/acp/page/MessageLogPage.class.php @@ -21,7 +21,7 @@ class MessageLogPage extends \wcf\page\AbstractPage { * @see \wcf\page\AbstractPage::$neededPermissions */ public $neededPermissions = array( - 'admin.char.canReadLog' + 'admin.chat.canReadLog' ); /** diff --git a/file/lib/data/message/MessageAction.class.php b/file/lib/data/message/MessageAction.class.php index bb2a66a..c85288a 100644 --- a/file/lib/data/message/MessageAction.class.php +++ b/file/lib/data/message/MessageAction.class.php @@ -186,7 +186,7 @@ public function getMessages() { */ public function validateGetMessages() { // check permissions - WCF::getSession()->checkPermissions(array('admin.char.canReadLog')); + WCF::getSession()->checkPermissions(array('admin.chat.canReadLog')); // read parameters $this->readInteger('roomID');