Unverified Commit 7ba50be9 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Configuration: load 'open' contribution by default

parent b8b11061
......@@ -137,14 +137,6 @@ class LoadConfiguration implements FixtureInterface
}
switch ($contribConfig) {
case 'open':
$configuration->setAddFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setEditFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setDeleteFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setCollaborativeModerationFeature(new InteractionConfiguration(false, false, false, false, false, false));
$configuration->setDirectModerationFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setReportFeature(new FeatureConfiguration(false, false, false, false, false));
break;
case 'intermediate':
$configuration->setAddFeature(new InteractionConfiguration(true, true, false, true, true, true));
$configuration->setEditFeature(new InteractionConfiguration(true, true, false, true, true, true));
......@@ -161,6 +153,15 @@ class LoadConfiguration implements FixtureInterface
$configuration->setDirectModerationFeature(new InteractionConfiguration(true, false, false, false, false, true));
$configuration->setReportFeature(new FeatureConfiguration(false, false, false, false, false));
break;
default:
// open by default
$configuration->setAddFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setEditFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setDeleteFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setCollaborativeModerationFeature(new InteractionConfiguration(false, false, false, false, false, false));
$configuration->setDirectModerationFeature(new InteractionConfiguration(true, true, true, true, true, true));
$configuration->setReportFeature(new FeatureConfiguration(false, false, false, false, false));
break;
}
$defaultTileLayerName = $configToCopy ? $configToCopy->defaultTileLayer : null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment