/** @return bool true if updated */ private function updateProjectAdminValue() { $validator = new Valid_WhiteList(self::PROJECT_ADMIN_KEY, array("0", "1")); if (!$this->request->valid($validator)) { return false; } $new_value = $this->request->get(self::PROJECT_ADMIN_KEY); $old_value = ForgeConfig::get(ForgeAccess::PROJECT_ADMIN_CAN_CHOOSE_VISIBILITY); if ($new_value == $old_value) { return false; } return $this->manager->updateProjectAdminVisibility($new_value, $old_value); }