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

Minor bug fix.

parent 3a37dbec
...@@ -317,7 +317,8 @@ if (!$project) { ...@@ -317,7 +317,8 @@ if (!$project) {
$errors["profile_pid"] = "No such project"; $errors["profile_pid"] = "No such project";
} }
# User better be a member. # User better be a member.
if (!$project->IsMember($this_user, $isapproved) || !$isapproved) { if (!ISADMIN() &&
(!$project->IsMember($this_user, $isapproved) || !$isapproved)) {
$errors["profile_pid"] = "Illegal project"; $errors["profile_pid"] = "Illegal project";
} }
......
Supports Markdown
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