fix xsrf condition check

This commit is contained in:
Umputun
2018-05-13 12:39:30 -05:00
parent 004a4fed17
commit f05655a1dc
+1 -1
View File
@@ -75,7 +75,7 @@ func (a *Authenticator) Auth(reqAuth bool) func(http.Handler) http.Handler {
return true
}()
if xsrfStatus {
if !xsrfStatus {
if reqAuth {
http.Error(w, "Unauthorized", http.StatusUnauthorized)
return