1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-23 22:55:37 +02:00

[#215] updated the admin ui to allow displaying private files

This commit is contained in:
Gani Georgiev
2023-04-05 13:23:22 +03:00
parent cd45854792
commit 733d7dacdb
44 changed files with 599 additions and 478 deletions

View File

@@ -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("Invalid file token or unsufficient permissions to access the resource.", nil)
return NewForbiddenError("Unsufficient permissions to access the file resource.", nil)
}
}