Commit 5e7f3dcb authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review

Merge "Removing an access option from presets if there is a locked instance"

parents e5cfa8e6 c1393bf9
......@@ -71,6 +71,9 @@ function pieform_element_viewacl(Pieform $form, $element) {
if ($form->is_submitted() || empty($item['stopdate']) || (time() <= strtotime($item['stopdate']))) {
$accesslist[] = $item;
}
if (!empty($item['locked'])) {
$allowedpresets = array_values(array_diff($allowedpresets, array($item['type'])));
}
}
}
}
......
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