updated scope
This commit is contained in:
parent
50eda21dbc
commit
10e4f4196a
|
@ -5,9 +5,10 @@ auth:
|
|||
method: noauth
|
||||
signup: true
|
||||
userDefaults:
|
||||
scope: "."
|
||||
hideDotfiles: true
|
||||
singleClick: false
|
||||
perm:
|
||||
permissions:
|
||||
admin: false
|
||||
create: true
|
||||
rename: true
|
||||
|
|
|
@ -17,6 +17,7 @@ func Initialize(configFile string) {
|
|||
if err != nil {
|
||||
log.Fatalf("Error unmarshaling YAML data: %v", err)
|
||||
}
|
||||
GlobalConfiguration.UserDefaults.Perm = GlobalConfiguration.UserDefaults.Permissions
|
||||
GlobalConfiguration.Server.Root = "/srv" // hardcoded for now. TODO allow changing
|
||||
}
|
||||
|
||||
|
@ -65,9 +66,10 @@ func setDefaults() Settings {
|
|||
},
|
||||
},
|
||||
UserDefaults: UserDefaults{
|
||||
Scope: ".",
|
||||
LockPassword: false,
|
||||
HideDotfiles: true,
|
||||
Perm: users.Permissions{
|
||||
Permissions: users.Permissions{
|
||||
Create: true,
|
||||
Rename: true,
|
||||
Modify: true,
|
||||
|
|
|
@ -90,6 +90,7 @@ type UserDefaults struct {
|
|||
Asc bool `json:"asc"`
|
||||
} `json:"sorting"`
|
||||
Perm users.Permissions `json:"perm"`
|
||||
Permissions users.Permissions `json:"permissions"`
|
||||
Commands []string `json:"commands"`
|
||||
HideDotfiles bool `json:"hideDotfiles"`
|
||||
DateFormat bool `json:"dateFormat"`
|
||||
|
|
Loading…
Reference in New Issue