mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-29 00:10:24 +01:00
renamed private to protected
This commit is contained in:
1 parent
8cb0d980ad
commit
177230a765
39 files changed
+113
-125
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user