Skip to content

Commit

Permalink
fixed minor typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Apr 17, 2023
1 parent a7d5a06 commit abea28a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apis/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit abea28a

Please sign in to comment.