Commit ae2b234e authored by Leigh Stoller's avatar Leigh Stoller

Move isadmin test up above experiment check.

parent d72e1966
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2003, 2005 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -32,18 +32,18 @@ if (!isset($eid) ||
}
#
# Check to make sure this is a valid PID/EID tuple.
# Only admins can do this!
#
if (! TBValidExperiment($pid, $eid)) {
USERERROR("The experiment $eid is not a valid experiment ".
"in project $pid.", 1);
if (! ISADMIN($uid)) {
USERERROR("Only TB admins can do this!", 1);
}
#
# Only admins can do this!
# Check to make sure this is a valid PID/EID tuple.
#
if (! ISADMIN($uid)) {
USERERROR("Only TB admins can do this!", 1);
if (! TBValidExperiment($pid, $eid)) {
USERERROR("The experiment $eid is not a valid experiment ".
"in project $pid.", 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