You've already forked pocketbase
mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-07-15 10:14:15 +02:00
fixed minor typos
This commit is contained in:
@ -103,7 +103,7 @@ func (api *fileApi) download(c echo.Context) error {
|
|||||||
adminOrAuthRecord, _ := api.findAdminOrAuthRecordByFileToken(token)
|
adminOrAuthRecord, _ := api.findAdminOrAuthRecordByFileToken(token)
|
||||||
|
|
||||||
if !api.canAccessRecord(adminOrAuthRecord, record, record.Collection().ViewRule) {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -310,7 +310,7 @@ type App interface {
|
|||||||
// OnFileBeforeTokenRequest hook is triggered before each file
|
// OnFileBeforeTokenRequest hook is triggered before each file
|
||||||
// token API request.
|
// 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.
|
// allowing you to implement your own custom model file auth implementation.
|
||||||
//
|
//
|
||||||
// If the optional "tags" list (Collection ids or names) is specified,
|
// If the optional "tags" list (Collection ids or names) is specified,
|
||||||
|
Reference in New Issue
Block a user