Commit 9a8cf2f8 authored by Leigh Stoller's avatar Leigh Stoller

Bug fixes.

parent 604120cb
......@@ -668,7 +668,7 @@ function (_, sup, moment, marked, UriTemplate, ShowImagingModal,
function ShowTopo(uuid)
{
var callback = function(json) {
#console.info(json);
//console.info(json);
if ($("#manifest_textarea").length) {
$("#manifest_textarea").val(json.value);
......
......@@ -132,7 +132,8 @@ $canclone = (($profile->published() && isset($this_user) &&
$snapping = 0;
$oneonly = (isset($oneonly) && $oneonly ? 1 : 0);
$isadmin = (ISADMIN() ? 1 : 0);
$dossh = $this_user->SameUser($creator) ? 1 : 0;
$dossh = (isset($this_user) &&
$this_user->SameUser($creator) ? 1 : 0);
#
# See if we have a task running in the background for this instance.
......
......@@ -279,7 +279,7 @@ class User
# Equality test.
#
function SameUser($user) {
return $user->uid_idx() == $this->uid_idx();
return $user->idx() == $this->idx();
}
#
......
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