ymdatta / pagure

Forked from pagure 6 years ago
Clone

22ed40b Add a different method to fetch project

3 files Authored by farhaan 7 years ago, Committed by pingou 7 years ago,
    Add a different method to fetch project
    
    `get_authorized_project()` is introduced in `pagure/__init__.py` to get
    project and filter it in a way to only return project which the logged
    in user is authorized to view.
    
    Previous approach of passing a function to the as a parameter may fail
    in some aspect hence it is avoided.
    
        
file modified
+10 -0
file modified
+1 -7
file modified
+3 -2