From 78333a07d04706617d8dabbeb14d81f62aa76e40 Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Feb 15 2017 10:28:58 +0000 Subject: check for access of group and not user when filtering the projects according to group Signed-off-by: Vivek Anand --- diff --git a/pagure/lib/__init__.py b/pagure/lib/__init__.py index 7201418..be0ae3d 100644 --- a/pagure/lib/__init__.py +++ b/pagure/lib/__init__.py @@ -1908,8 +1908,8 @@ def search_projects( model.PagureGroup.id == model.ProjectGroup.group_id, model.Project.id == model.ProjectGroup.project_id, sqlalchemy.or_( - model.ProjectUser.access == 'admin', - model.ProjectUser.access == 'commit', + model.ProjectGroup.access == 'admin', + model.ProjectGroup.access == 'commit', ) )