Commit d0fc7df8 authored by Leigh B Stoller's avatar Leigh B Stoller

Send create dataset permission errors to the user, not to tbops.

parent 3e083033
......@@ -313,7 +313,7 @@ sub DoCreate()
fatal("No such project");
}
if (!$project->AccessCheck($this_user, TB_PROJECT_CREATELEASE())) {
fatal("Not enough permission in project");
UserError("Not enough permission to create datasets in project $pid");
}
&$usage()
if ($type eq "stdataset" && !defined($expires));
......
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