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

Move isadmin test up above experiment check.

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