chore: user permissions

This commit is contained in:
Noah Hsu
2022-06-29 18:03:12 +08:00
parent 3c7a2f78cf
commit d24e51bc86
11 changed files with 110 additions and 48 deletions

View File

@ -20,14 +20,11 @@ func initDevData() {
log.Fatalf("failed to create account: %+v", err)
}
err = db.CreateUser(&model.User{
Username: "Noah",
Password: "hsu",
BasePath: "/data",
ReadOnly: false,
Webdav: false,
Role: 0,
IgnoreHide: false,
IgnorePassword: false,
Username: "Noah",
Password: "hsu",
BasePath: "/data",
Role: 0,
Permission: 512,
})
if err != nil {
log.Fatalf("failed to create user: %+v", err)