add('acl_option.objectTypeID = ?', [ ACLHandler::getInstance()->getObjectTypeID('be.bastelstu.chat.room') ]); $conditionBuilder->add('option_to_group.groupID IN (?)', [ $parameters ]); $sql = "SELECT option_to_group.objectID AS roomID, option_to_group.optionValue, acl_option.optionName AS permission FROM wcf".WCF_N."_acl_option acl_option INNER JOIN wcf".WCF_N."_acl_option_to_group option_to_group ON option_to_group.optionID = acl_option.optionID ".$conditionBuilder; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute($conditionBuilder->getParameters()); while (($row = $statement->fetchArray())) { if (!isset($data[$row['roomID']][$row['permission']])) { $data[$row['roomID']][$row['permission']] = $row['optionValue']; } else { $data[$row['roomID']][$row['permission']] = $row['optionValue'] || $data[$row['roomID']][$row['permission']]; } } } return $data; } }