Commit a983afc2 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Bug fix; the query for getting a user's project and group membership

was not looking at the value of $isadmin, so the query was not givin
admin people all of the membership.
parent ffed6f8c
......@@ -104,7 +104,8 @@ $query_result =
"left join reserved as r on and e.eid=r.eid ".
"left join group_membership as g2 on and ".
" g2.gid=g.gid and g2.uid='$uid' ".
"where g.uid='$target_uid' and g2.uid is not null and ".
"where g.uid='$target_uid' and ".
($isadmin ? "" : "g2.uid is not null and ") .
"group by, g.gid ".
"order by,gr.created");
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