Commit e563e74c authored by Leigh Stoller's avatar Leigh Stoller

Minor tweak to previous change for frozen users.

parent 98927b13
......@@ -8089,12 +8089,6 @@ sub FlipToUser($$)
$project = $experiment->GetProject();
$group = $experiment->GetGroup();
$creator = $experiment->GetCreator();
#
# If creator is frozen we need to use the project leader instead.
#
if ($creator->frozen()) {
$creator = $project->GetLeader();
}
}
elsif (ref($object) eq "OSImage" || ref($object) eq "Image") {
$image = $object;
......@@ -8104,6 +8098,13 @@ sub FlipToUser($$)
}
return undef
if (! (defined($project) && defined($group) && defined($creator)));
#
# If creator is frozen we need to use the project leader instead.
#
if ($creator->frozen()) {
$creator = $project->GetLeader();
}
$creator = GeniUser::LocalUser->Create($creator);
#
......
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