Commit a6888745 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor bug fix.

parent f770b76f
......@@ -971,7 +971,8 @@ function Do_Snapshot()
SPITAJAX_ERROR(1, "Cannot lookup profile for instance");
if ($this_idx != $profile->creator_idx() && !ISADMIN()) {
if ($operation == "update-profile" &&
($this_idx != $profile->creator_idx() && !ISADMIN())) {
SPITAJAX_ERROR(1, "Not your profile to change. Clone first!");
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