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

Minor fix to permissions checking.

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