Commit 76abf00b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Minor fix to nalloc; do not call ProjMember when caller is root, since

we don't have a root user in the DB. Perhaps this is bad?
parent a5f71e42
......@@ -44,8 +44,10 @@ if ($debug) { print "Expt '$eid', proj '$pid'\n"; }
# Make sure the user is a member of the correct project, and that the
# experiment exists
if (!ProjMember($pid)) {
if ($UID) {
if (!ProjMember($pid)) {
die "You are not a member of project $pid\n";
if (!ExpState($pid,$eid)) {
die "There is no experiment $eid in project $pid\n";
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