Commit 76b15833 authored by Leigh B Stoller's avatar Leigh B Stoller

Oops, left this out of commit be7b878d.

parent d239b659
......@@ -169,6 +169,7 @@ $canterminate = ((isset($this_user) &&
$cancopy_profile = 0;
$canclone_profile = 0;
$canupdate_profile = 0;
$cansave_parameters= 0;
$isscript = 0;
if ($profile = Profile::Lookup($instance->profile_id(),
......@@ -186,6 +187,7 @@ if ($profile = Profile::Lookup($instance->profile_id(),
$canupdate_profile = ((isset($this_user) &&
$this_user->idx() == $profile->creator_idx()) ||
ISADMIN() ? 1 : 0);
$cansave_parameters= $profile->UseNewGeniLib() ? 1 : 0;
}
$isscript = ($profile->script() && $profile->script() != "" ? 1 : 0);
}
......@@ -255,6 +257,7 @@ echo " window.APT_OPTIONS.cansnapshot = $cansnapshot;\n";
echo " window.APT_OPTIONS.canclone_profile = $canclone_profile;\n";
echo " window.APT_OPTIONS.canupdate_profile = $canupdate_profile;\n";
echo " window.APT_OPTIONS.cancopy_profile = $cancopy_profile;\n";
echo " window.APT_OPTIONS.cansave_parameters = $cansave_parameters;\n";
echo " window.APT_OPTIONS.canterminate = $canterminate;\n";
echo " window.APT_OPTIONS.wholedisk = $wholedisk;\n";
echo " window.APT_OPTIONS.snapping = $snapping;\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