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:
parent
44a2659550
commit
1f533e255f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user