frostyx / copr / copr

Forked from copr/copr 7 years ago
Clone

6c78d2c frontend: not access flask.g.user, user parameter instead

1 file Authored by frostyx 3 years ago, Committed by praiskup 3 years ago,
    frontend: not access flask.g.user, user parameter instead
    
    IMHO this is a typo, why else we would access `flask.g.user` variable
    to find out Coprs permissible by an user, when we are already passing
    the user through method parameter.
    
    It forces us to create tests with application context which otherwise
    wouldn't be necessary.