From abea28a1a96be3471f55f291f365e53989a294a5 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Mon, 17 Apr 2023 22:22:41 +0300 Subject: [PATCH] fixed minor typos --- apis/file.go | 2 +- core/app.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/file.go b/apis/file.go index c868fb73..e764c01b 100644 --- a/apis/file.go +++ b/apis/file.go @@ -103,7 +103,7 @@ func (api *fileApi) download(c echo.Context) error { adminOrAuthRecord, _ := api.findAdminOrAuthRecordByFileToken(token) if !api.canAccessRecord(adminOrAuthRecord, record, record.Collection().ViewRule) { - return NewForbiddenError("Unsufficient permissions to access the file resource.", nil) + return NewForbiddenError("Insufficient permissions to access the file resource.", nil) } } diff --git a/core/app.go b/core/app.go index fb7daa56..a6e9e93f 100644 --- a/core/app.go +++ b/core/app.go @@ -310,7 +310,7 @@ type App interface { // OnFileBeforeTokenRequest hook is triggered before each file // token API request. // - // If not token or model was submitted, e.Model and e.Token will be empty, + // If no token or model was submitted, e.Model and e.Token will be empty, // allowing you to implement your own custom model file auth implementation. // // If the optional "tags" list (Collection ids or names) is specified,