Commit e234b170 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix; we let users delete profiles (or versions) while there is an

experiment running that uses that profile. A small bug here prevented
the Terminate button from getting enabled. In general though, I wonder
if we should not allow a profile to be deleted while its instantiated. :-)
parent 0255b322
......@@ -177,7 +177,9 @@ if ($profile = Profile::Lookup($instance->profile_id(),
else {
$cansnap = 0;
$canclone = 0;
$canterminate = 0;
$canterminate = ((isset($this_user) &&
$instance->CanTerminate($this_user)) ||
ISADMIN() ? 1 : 0);
$isscript = 0;
}
......
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