Commit 3cc09c11 authored by Leigh Stoller's avatar Leigh 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.pid,g.gid ".
" FROM group_membership as g ".
"left join projects as p on p.pid=g.pid ".
"$user_clause $trust_clause order by g.pid");
if (mysql_num_rows($query_result) == 0) {
return $result;
......
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