diff --git a/databunker.yaml b/databunker.yaml index 41343d3..062e03c 100644 --- a/databunker.yaml +++ b/databunker.yaml @@ -3,9 +3,9 @@ generic: # allow to create user object without login create_user_without_access_token: true selfservice: - # specifies if admin/DPO is required to approve user deletion + # specifies if user can remove himself withour Admin/DPO approval (default false) forget_me: false - # specifies if admin/DPO is required to approve user profile change + # specifies if user can change his data without Admin/DPO approval (default false) user_record_change: true # specifies a list of app-data objects user can change without approval app_record_change: ["*"] diff --git a/src/bunker.go b/src/bunker.go index 0c617b9..521d55a 100644 --- a/src/bunker.go +++ b/src/bunker.go @@ -38,13 +38,13 @@ type dbcon struct { // Config is u sed to store application configuration type Config struct { Generic struct { - CreateUserWithoutAccessToken bool `yaml:"create_user_without_access_token"` + CreateUserWithoutAccessToken bool `yaml:"create_user_without_access_token" default:false` UserRecordSchema string `yaml:"user_record_schema"` AdminEmail string `yaml:"admin_email"` } SelfService struct { - ForgetMe bool `yaml:"forget_me"` - UserRecordChange bool `yaml:"user_record_change"` + ForgetMe bool `yaml:"forget_me" default:false` + UserRecordChange bool `yaml:"user_record_change" default:false` AppRecordChange []string `yaml:"app_record_change"` } Notification struct {