Commit d9543015 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Allow isadmin and studly users to access summary stats page, so Eric

can view them.
parent 1355d215
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2004 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -17,10 +17,9 @@ PAGEHEADER("Testbed Summary Stats");
#
$uid = GETLOGIN();
LOGGEDINORDIE($uid);
$isadmin = ISADMIN($uid);
# Summary data for admins only.
if (!$isadmin) {
if (!ISADMIN() && !STUDLY()) {
USERERROR("You are not allowed to view this page!", 1);
}
......
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