From 81bd1a1732b1cd75ef05c4def5a1b279bdb7a1e8 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Mon, 17 Jul 2023 00:05:01 +0300 Subject: [PATCH] reset the requestData Admin and AuthRecord fields --- apis/file.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apis/file.go b/apis/file.go index 83c2b776..36c288b7 100644 --- a/apis/file.go +++ b/apis/file.go @@ -96,6 +96,8 @@ func (api *fileApi) download(c echo.Context) error { // create a copy of the cached request data and adjust it to the current auth record requestData := *RequestData(c) + requestData.Admin = nil + requestData.AuthRecord = nil if adminOrAuthRecord != nil { if admin, _ := adminOrAuthRecord.(*models.Admin); admin != nil { requestData.Admin = admin