mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Add forgotten template and fix permissions
This commit is contained in:
parent
70801203f8
commit
d99d631527
5
acptemplate/messageLogDownload.tpl
Normal file
5
acptemplate/messageLogDownload.tpl
Normal file
@ -0,0 +1,5 @@
|
||||
{foreach from=$messages item=$rawMessage}{*
|
||||
*}{assign var=message value=$rawMessage->jsonify(true)}{*
|
||||
*}({$message['time']|date:'H:i:s'}) {$message[username]|str_pad:15:' ':STR_PAD_LEFT}{$message[separator]} {$message[message]}
|
||||
|
||||
{/foreach}
|
@ -21,7 +21,7 @@ class MessageLogDownloadPage extends \wcf\page\AbstractPage {
|
||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||
*/
|
||||
public $neededPermissions = array(
|
||||
'mod.chat.canReadLog'
|
||||
'admin.char.canReadLog'
|
||||
);
|
||||
|
||||
public $useTemplate = false;
|
||||
|
@ -21,7 +21,7 @@ class MessageLogPage extends \wcf\page\AbstractPage {
|
||||
* @see \wcf\page\AbstractPage::$neededPermissions
|
||||
*/
|
||||
public $neededPermissions = array(
|
||||
'mod.chat.canReadLog'
|
||||
'admin.char.canReadLog'
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -186,7 +186,7 @@ public function getMessages() {
|
||||
*/
|
||||
public function validateGetMessages() {
|
||||
// check permissions
|
||||
WCF::getSession()->checkPermissions(array('mod.chat.canReadLog'));
|
||||
WCF::getSession()->checkPermissions(array('admin.char.canReadLog'));
|
||||
|
||||
// read parameters
|
||||
$this->readInteger('roomID');
|
||||
|
Loading…
Reference in New Issue
Block a user