From 9b9b4b5086c092456ffe0388ac0e2512a1eb120a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 23 Mar 2012 17:50:06 +0100 Subject: [PATCH] Bugfix --- file/lib/system/chat/permission/ChatPermissionHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file/lib/system/chat/permission/ChatPermissionHandler.class.php b/file/lib/system/chat/permission/ChatPermissionHandler.class.php index fa26ef3..4691c5c 100644 --- a/file/lib/system/chat/permission/ChatPermissionHandler.class.php +++ b/file/lib/system/chat/permission/ChatPermissionHandler.class.php @@ -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]; }