frantisekz / pagure-dist-git

Forked from pagure-dist-git 4 years ago
Clone

64621b8 Fix the orphan endpoint

Authored and Committed by pingou 4 years ago
    Fix the orphan endpoint
    
    In the previous commit we prevented anyone from orphaning packages
    but we prevented admins from doing it, which isn't what we meant to
    do, admins should be allowed to orphan any packages since sometime
    people become non-responsive.
    This commit fixes this, we now only allow the current main admin or
    admins to orphan packages.
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    
        
file modified
+2 -1