mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Fix triple-typo ... this should fix the permissions
This commit is contained in:
parent
d99d631527
commit
577c3fc25a
@ -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;
|
||||
|
@ -21,7 +21,7 @@ class MessageLogPage extends \wcf\page\AbstractPage {
|
||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||
*/
|
||||
public $neededPermissions = array(
|
||||
'admin.char.canReadLog'
|
||||
'admin.chat.canReadLog'
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user