Commit 3866cfb3 authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix to permissions checking.

parent 9178ace9
......@@ -370,12 +370,12 @@ class Profile
function CanInstantiate($user) {
$profileid = $this->profileid();
if ($profile->shared() || $profile->ispublic() ||
$profile->creator_idx() == $user->uid_idx()) {
if ($this->shared() || $this->ispublic() ||
$this->creator_idx() == $user->uid_idx()) {
return 1;
}
# Otherwise a project membership test.
$project = Project::Lookup($profile->pid_idx());
$project = Project::Lookup($this->pid_idx());
if (!$project) {
return 0;
}
......
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