Commit 879381d2 authored by Leigh Stoller's avatar Leigh Stoller

Turn off all profile versioning, unless in red-dot mode, until we

get the URL stuff figured out.
parent a39be31e
......@@ -297,9 +297,11 @@ if ($update) {
#
if (exists($update_args{"rspec"})) {
if ($update_args{"rspec"} ne $profile->rspec()) {
$profile = $profile->NewVersion($this_user);
if (!defined($profile)) {
fatal("Could not create new version of the profile");
if ($this_user->IsAdmin()) {
$profile = $profile->NewVersion($this_user);
if (!defined($profile)) {
fatal("Could not create new version of the profile");
}
}
$profile->UpdateVersion({"rspec" => $update_args{"rspec"}});
}
......@@ -329,6 +331,9 @@ else {
}
fatal("Could not create new profile");
}
if (!$this_user->IsAdmin()) {
$profile->Publish();
}
}
#
......
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