1
0
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:
Maximilian Mader 2013-09-06 16:08:18 +02:00
parent 70801203f8
commit d99d631527
4 changed files with 8 additions and 3 deletions

View 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}

View File

@ -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(
'mod.chat.canReadLog' 'admin.char.canReadLog'
); );
public $useTemplate = false; public $useTemplate = false;

View File

@ -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(
'mod.chat.canReadLog' 'admin.char.canReadLog'
); );
/** /**

View File

@ -186,7 +186,7 @@ public function getMessages() {
*/ */
public function validateGetMessages() { public function validateGetMessages() {
// check permissions // check permissions
WCF::getSession()->checkPermissions(array('mod.chat.canReadLog')); WCF::getSession()->checkPermissions(array('admin.char.canReadLog'));
// read parameters // read parameters
$this->readInteger('roomID'); $this->readInteger('roomID');