getUser()); $room = $suspension->getRoom(); if ($user->getPermission('mod.chat.canBan')) { return false; } if ($room !== null) { if (PermissionHandler::get($user)->getPermission($room, 'mod.canBan') || PermissionHandler::get($user)->getPermission($room, 'mod.canIgnoreBan')) { return false; } } else { if ($user->getPermission('mod.chat.canIgnoreBan')) { return false; } } return true; } }