Commit df876080 authored by Leigh Stoller's avatar Leigh Stoller

Minor fix.

parent 875e0a88
......@@ -97,7 +97,8 @@ if (!$creator) {
if (! (isset($this_user) && ISADMIN())) {
# An experiment created by a real user, can be accessed by that user only.
# Ditto a guest user; must be the same guest.
if (! ((get_class($creator) == "User" && $instance->CanView($this_user)) ||
if (! ((get_class($creator) == "User" && isset($this_user) &&
$instance->CanView($this_user)) ||
(get_class($creator) == "GeniUser" &&
isset($_COOKIE['quickvm_user']) &&
$_COOKIE['quickvm_user'] == $creator->uuid()))) {
......
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