Commit 028b917c authored by Kevin Atkinson's avatar Kevin Atkinson

Bug fix in MayEditPub when project is 'N/A'.

parent fa583e13
......@@ -20,6 +20,8 @@ function MayEditPub($user, $isadmin, $row) {
if ($pid == '')
return false;
$proj = Project::LookupByPid($pid);
if (!$proj)
return false;
return TBMinTrust($proj->UserTrust($user), $TBDB_TRUST_LOCALROOT);
}
......
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