mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Bugfix
This commit is contained in:
parent
cf434b1778
commit
9b9b4b5086
@ -89,7 +89,7 @@ protected function init() {
|
||||
public function getPermission(\wcf\data\chat\room\ChatRoom $room, $permission) {
|
||||
if (!isset($this->chatPermissions[$room->roomID][$permission])) {
|
||||
$permission = str_replace(array('user.', 'mod.'), array('user.chat.', 'mod.chat.'), $permission);
|
||||
return WCF::getUser()->getPermission($permission);
|
||||
return WCF::getSession()->getPermission($permission);
|
||||
}
|
||||
return (boolean) $this->chatPermissions[$room->roomID][$permission];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user