chore(permission): admin enables webdav read-only by default (#726)

chore: admin enables webdav read-only by default
This commit is contained in:
hshpy
2025-07-24 10:19:49 +08:00
committed by GitHub
parent b5f0e3e5ee
commit 8b65c918d4

View File

@ -33,7 +33,7 @@ func initUser() {
BasePath: "/", BasePath: "/",
Authn: "[]", Authn: "[]",
// 0(can see hidden) - 7(can remove) & 12(can read archives) - 13(can decompress archives) // 0(can see hidden) - 7(can remove) & 12(can read archives) - 13(can decompress archives)
Permission: 0x30FF, Permission: 0x31FF,
} }
if err := op.CreateUser(admin); err != nil { if err := op.CreateUser(admin); err != nil {
panic(err) panic(err)