Skip to content
Snippets Groups Projects
Commit 1c8f0dab authored by srosse's avatar srosse
Browse files

OO-2685: check the access value in the publish process

parent 2bd59cb5
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,18 @@ class PublishStep01 extends BasicStep {
if(!loginModule.isGuestLoginLinksEnabled() && "4".equals(selectedAccess)) {//no guest but BARG
accessSelbox.select("3", true);//-> set BAR-
} else {
accessSelbox.select(selectedAccess, true);
boolean found = false;
for(String key:keys) {
if(key.equals(selectedAccess)) {
accessSelbox.select(key, true);
found = true;
break;
}
}
if(!found) {//probably 0
accessSelbox.select(keys[0], true);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment