5cdb69 Allow filtering the user's project by access

Authored and Committed by Pierre-Yves Chibon 7 years ago
    Allow filtering the user's project by access
    
    This commit allows to return only some of the projects the user is
    involved in based on their access level instead of returning them all.
    
    It also replaces SQL based counts of the projects by simple call to
    ``len()`` in python since the SQL query itself isn't paginated.
    
    Fixes https://pagure.io/pagure/issue/2738
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr></pingou@pingoured.fr>
    
        
file modified
+21 -0
file modified
+54 -28