Commit 9520cd7b authored by Reto Da Forno's avatar Reto Da Forno
Browse files

access rights for admins changed

parent 69d1bd6d
......@@ -34,7 +34,7 @@
<?php include_once('include/presets.php');?>
<?php
// provide archive
if (isset($_POST['testid']) && is_numeric($_POST['testid']) && check_testid($_POST['testid'],$_SESSION['serv_users_key'])) {
if (isset($_POST['testid']) && is_numeric($_POST['testid']) && (check_testid($_POST['testid'],$_SESSION['serv_users_key']) || $_SESSION['is_admin'])) {
$testid = $_POST['testid'];
// check file
$archivepath = $CONFIG['testmanagementserver']['archivedir'];
......
Supports Markdown
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