mirror of
https://github.com/aunefyren/wrapperr
synced 2024-12-12 20:32:27 +00:00
One more received
This commit is contained in:
parent
ec479ecaeb
commit
5d5e75b66a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue