Commit ea0b9b90 authored by Leigh Stoller's avatar Leigh Stoller

Fix permission check for deleting groups, and fix the print statement!

parent 0d44d677
......@@ -117,9 +117,9 @@ if (!TBAdmin($UID)) {
" You are not a valid emulab user!\n");
}
if (! TBMinTrust(TBProjTrust($dbuid, $pid), PROJMEMBERTRUST_PROJROOT)) {
if (! TBProjAccessCheck($dbuid, $pid, $pid, TB_PROJECT_DELGROUP())) {
die("*** $0:\n".
" Yoo do not have permission to remove a group directory\n");
" You do not have permission to remove a project group!\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