mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10: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
|
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||||
*/
|
*/
|
||||||
public $neededPermissions = array(
|
public $neededPermissions = array(
|
||||||
'admin.char.canReadLog'
|
'admin.chat.canReadLog'
|
||||||
);
|
);
|
||||||
|
|
||||||
public $useTemplate = false;
|
public $useTemplate = false;
|
||||||
|
@ -21,7 +21,7 @@ class MessageLogPage extends \wcf\page\AbstractPage {
|
|||||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||||
*/
|
*/
|
||||||
public $neededPermissions = array(
|
public $neededPermissions = array(
|
||||||
'admin.char.canReadLog'
|
'admin.chat.canReadLog'
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -186,7 +186,7 @@ public function getMessages() {
|
|||||||
*/
|
*/
|
||||||
public function validateGetMessages() {
|
public function validateGetMessages() {
|
||||||
// check permissions
|
// check permissions
|
||||||
WCF::getSession()->checkPermissions(array('admin.char.canReadLog'));
|
WCF::getSession()->checkPermissions(array('admin.chat.canReadLog'));
|
||||||
|
|
||||||
// read parameters
|
// read parameters
|
||||||
$this->readInteger('roomID');
|
$this->readInteger('roomID');
|
||||||
|
Loading…
Reference in New Issue
Block a user