diff options
author | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-06-17 23:34:04 +0300 |
---|---|---|
committer | Tuomo Ala-Vannesluoma <tuomoav@gmail.com> | 2018-06-30 22:51:39 +0300 |
commit | 301dd4675e9df8ccc8ad47fe7f2c40c03428ddb2 (patch) | |
tree | 48d0456715a2cba4acd577d9baa40a39a7a50e6f /internal/auth | |
parent | 9cf40354085f4b4446f06d4d03926dcaa6ab9565 (diff) |
Fix logic to return failure instead of making private pages public
Diffstat (limited to 'internal/auth')
-rw-r--r-- | internal/auth/auth.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go index d5600d32..d64a4053 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -187,7 +187,8 @@ func (a *Auth) fetchAccessToken(code string) (tokenResponse, error) { func (a *Auth) CheckAuthentication(w http.ResponseWriter, r *http.Request, projectID int) bool { if a == nil { - return false + httperrors.Serve500(w) + return true } if a.checkSession(w, r) { |