Commit 3cc09c11 authored by Leigh B Stoller's avatar Leigh B Stoller

Change ProjAccessList() to skip nonlocal projects, we do not want

to show those in selection lists.
parent 1e960a54
......@@ -1213,7 +1213,7 @@ class User
$uid_idx = $this->uid_idx();
$result = array();
$user_clause = "where uid_idx='$uid_idx' and";
$user_clause = "where uid_idx='$uid_idx' and p.nonlocal_id is null and";
$trust_clause= "";
# Constants.
......@@ -1251,8 +1251,10 @@ class User
$query_result =
DBQueryFatal("SELECT distinct pid,gid FROM group_membership ".
"$user_clause $trust_clause order by pid");
DBQueryFatal("SELECT distinct,g.gid ".
" FROM group_membership as g ".
"left join projects as p on ".
"$user_clause $trust_clause order by");
if (mysql_num_rows($query_result) == 0) {
return $result;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment