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