Commit 9f21e383 authored by Leigh B Stoller's avatar Leigh B Stoller

Temporary fix for David; do not do image constraints unless TBMAINSITE

is true, which means its the Portal. Since there is no IMS database
anyplace else, GetImageInfo() ajax call fails. This is mostly harmless,
users will just get an error later when instantiating. This affects the
portal over on the APT cluster that the HPC people use for development.
parent 4273656d
......@@ -411,9 +411,8 @@ function SPITFORM($formfields, $newuser, $errors)
echo " window.ISADMIN = $isadmin;\n";
$multisite = (isset($this_user) ? 1 : 0);
echo " window.MULTISITE = $multisite;\n";
$doconstraints = (isset($this_user) &&
(ISADMINISTRATOR() || STUDLY()) ? 1 : 0);
echo " window.DOCONSTRAINTS = 1;\n";
$doconstraints = $TBMAINSITE;
echo " window.DOCONSTRAINTS = $doconstraints;\n";
echo " window.SKIPFIRSTSTEP = " . ($skipfirststep ? "true" : "false") . ";\n";
echo " window.PORTAL_NAME = '$PORTAL_NAME';\n";
echo " window.USERNAME = '" . $formfields["username"] . "';\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