Commit 66043c8b authored by Evan Goldenberg's avatar Evan Goldenberg
Browse files

only show current view access (bug #518595)


Signed-off-by: default avatarEvan Goldenberg <evang@catalyst.net.nz>
parent 4c0bf256
......@@ -59,6 +59,10 @@ function pieform_element_viewacl(Pieform $form, $element) {
else {
$item['name'] = pieform_render_viewacl_getvaluebytype($item['type'], $item['id']);
}
// only show access that is still current. Expired access will be deleted if the form is saved
if($item['stopdate'] && (time() > strtotime($item['stopdate']))) {
unset($value[$key]);
}
}
else {
unset($value[$key]);
......
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