1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix permissions of temporary rooms

This commit is contained in:
Tim Düsterhus 2014-02-27 19:25:30 +01:00
parent 44a2659550
commit 1f533e255f

View File

@ -48,8 +48,8 @@ public function canEnter(\wcf\data\user\User $user = null) {
if (!$user->userID) return false;
$user = new \wcf\data\user\UserProfile($user);
if ($user->getPermission('admin.chat.canManageSuspensions')) return true;
if ($user->getPermission('mod.chat.canGban')) return true;
if ($this->isPermanent && $user->getPermission('admin.chat.canManageSuspensions')) return true;
if ($this->isPermanent && $user->getPermission('mod.chat.canGban')) return true;
$ph = new \chat\system\permission\PermissionHandler($user->getDecoratedObject());
if ($ph->getPermission($this, 'mod.canAlwaysEnter')) return true;