One more received

This commit is contained in:
etsweeney 2022-12-09 08:29:59 -06:00 committed by GitHub
parent ec479ecaeb
commit 5d5e75b66a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,7 @@ func ApiWrapperGetStatistics(w http.ResponseWriter, r *http.Request) {
// If caching mode is true and user is not admin, return bad request error // If caching mode is true and user is not admin, return bad request error
if wrapperr_request.CachingMode && !admin { if wrapperr_request.CachingMode && !admin {
log.Println("Caching mode recieved, but user was not verified as admin.") log.Println("Caching mode received, but user was not verified as admin.")
utilities.RespondDefaultError(w, r, errors.New("Only the admin can perform caching."), 401) utilities.RespondDefaultError(w, r, errors.New("Only the admin can perform caching."), 401)
return return
} }