Commit fbe3c88e authored by Leigh Stoller's avatar Leigh Stoller

Move check for unix gid uniqueness to after project uniqueness check!

parent 70cf5462
......@@ -108,16 +108,6 @@ if (strlen($proj_head_uid) > $TBDB_UIDLEN) {
"Please select one that is shorter than $TBDB_UIDLEN.", 1);
}
#
# Check early that we can guarantee uniqueness of the unix group name.
#
$query_result =
DBQueryFatal("select gid from groups where unix_name='$pid'");
if (mysql_num_rows($query_result)) {
TBERROR("Could not form a unique Unix group name for $pid!", 1);
}
#
# Check that email address looks reasonable. We need the domain for
# below anyway.
......@@ -174,6 +164,16 @@ if ($row = mysql_fetch_row($project_result)) {
"Please select another.", 1);
}
#
# Check early that we can guarantee uniqueness of the unix group name.
#
$query_result =
DBQueryFatal("select gid from groups where unix_name='$pid'");
if (mysql_num_rows($query_result)) {
TBERROR("Could not form a unique Unix group name for $pid!", 1);
}
#
# See if this is a new user or one returning.
#
......
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