$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(1));
-// change group options from admin group to true
-$sql = "UPDATE wcf".WCF_N."_user_group_option_value
- SET optionValue = ?
- WHERE groupID = ?
- AND optionValue = ?";
-$statement = WCF::getDB()->prepareStatement($sql);
-$statement->execute(array(1, 4, '0'));
-
-// update accessible groups
-$sql = "UPDATE wcf".WCF_N."_user_group_option_value
- SET optionValue = ?
- WHERE groupID = ?
- AND optionValue = ?";
-$statement = WCF::getDB()->prepareStatement($sql);
-$statement->execute(array('1,2,3,4,5,6', 4, ''));
-
// reset sessions
SessionHandler::resetSessions();
* @return boolean
*/
public function isAdminGroup() {
+ // workaround for WCF-Setup
+ if (!PACKAGE_ID && $this->groupID == 4) return true;
+
$groupIDs = array_keys(self::getGroupsByType());
$accessibleGroupIDs = explode(',', $this->getGroupOption('admin.user.accessibleGroups'));
ORDER BY package_dependency.priority ASC";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(PACKAGE_ID));
+
while ($row = $statement->fetchArray()) {
$groupOptionIDs[$row['optionName']] = $row['optionID'];
}