1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-24 07:04:51 +02:00

renamed private to protected

This commit is contained in:
Gani Georgiev
2023-04-15 13:27:42 +03:00
parent 8cb0d980ad
commit 177230a765
39 changed files with 113 additions and 125 deletions

View File

@@ -96,8 +96,8 @@ func (api *fileApi) download(c echo.Context) error {
return NewBadRequestError("", errors.New("Failed to load file options."))
}
// check whether the request is authorized to view the private file
if options.Private {
// check whether the request is authorized to view the protected file
if options.Protected {
token := c.QueryParam("token")
adminOrAuthRecord, _ := api.findAdminOrAuthRecordByFileToken(token)