mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-22 02:00:40 +00:00
Fix permissions of temporary rooms
This commit is contained in:
parent
44a2659550
commit
1f533e255f
@ -48,8 +48,8 @@ class Room extends \chat\data\CHATDatabaseObject implements \wcf\system\request\
|
||||
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…
x
Reference in New Issue
Block a user