jjelen / pagure

Forked from pagure 6 years ago
Clone

a04944f Fix redirecting the user when they remove themselves from a project

Authored and Committed by pingou 6 years ago
    Fix redirecting the user when they remove themselves from a project
    
    We used to redirect the user to the settings page but if the user remove
    themselves from the project, they can no longer access this page and they
    end up with a nice 403 page.
    With this commit, we check if they are removing themselves and if they
    do we simply redirect them to the front page of the project.
    
    Fixes https://pagure.io/pagure/issue/2937
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
    
        
file modified
+10 -1
file modified
+2 -11
file modified
+10 -3