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

Another permission check fix

parent aa772bba
...@@ -360,10 +360,6 @@ if (isset($action) && $action == "snapshot") { ...@@ -360,10 +360,6 @@ if (isset($action) && $action == "snapshot") {
if (!$profile) { if (!$profile) {
$errors["error"] = "Cannot load profile for instance!"; $errors["error"] = "Cannot load profile for instance!";
} }
else if ($this_idx != $profile->creator_idx() &&
!$profile->ispublic() && !ISADMIN()) {
$errors["error"] = "Not enough permission!";
}
} }
} }
......
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