mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-31 17:30:24 +01:00
[#215] updated the admin ui to allow displaying private files
This commit is contained in:
1 parent
cd45854792
commit
733d7dacdb
44 files changed
+599
-478
No files matched your search
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user