// see if a survey has been selected if(!empty($_GET['sid'])) { $sid = intval($_GET['sid']); if(empty($_GET['details'])) $_GET['details'] = 1; // by default, show details in report /* check ACL to see if user is allowed to view * _this_ survey */ $srealm = auth_get_survey_realm($sid); if($_SESSION['acl']['superuser'] != 'Y' && !auth_is_owner($sid, $_SESSION['acl']['username']) && !in_array($srealm, array_intersect( $_SESSION['acl']['pdesign'], $_SESSION['acl']['pall'])) && !auth_no_access(_('to access this form'))) { return; } ?>
| "> |