Skip to content

Commit

Permalink
style: rem auth, storage(bolt) and version
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Feb 26, 2025
1 parent 96a8c79 commit 97e421a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/backend/http/paste.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func resourceDriveGetInfo(path string, r *http.Request, d *data) (*files.FileInf
xBflUser := r.Header.Get("X-Bfl-User")
fmt.Println("X-Bfl-User: ", xBflUser)

d.user, _ = d.store.Users.Get(d.server.Root, uint(1))
//d.user, _ = d.store.Users.Get(d.server.Root, uint(1))
//fmt.Println(d.user.Fs)
//fmt.Println(path)
//fmt.Println(d.user.Perm.Modify)
Expand Down
15 changes: 10 additions & 5 deletions packages/backend/storage/storage.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package storage

import (
"github.com/filebrowser/filebrowser/v2/settings"
"github.com/filebrowser/filebrowser/v2/users"
)

// Storage is a storage powered by a Backend which makes the necessary
// verifications when fetching and saving data to ensure consistency.
//type Storage struct {
// Users users.Store
// Auth *auth.Storage
// Settings *settings.Storage
//}
type Storage struct {
Users users.Store
//Auth *auth.Storage
Settings *settings.Storage
}

0 comments on commit 97e421a

Please sign in to comment.