Option to lock user's password #215

This commit is contained in:
Henrique Dias committed 2017-08-24 14:44:53 +01:00
1 parent 889871ec0a
commit fc9ca4f6a4
9 files changed
+314 -297

No files matched your search

+4
View File
@@ -286,6 +286,7 @@ var DefaultUser = User{
AllowEdit: true,
AllowNew: true,
AllowPublish: true,
LockPassword: false,
Commands: []string{},
Rules: []*Rule{},
CSS: "",
@@ -325,6 +326,9 @@ type User struct {
// Locale is the language of the user.
Locale string `json:"locale"`
// Prevents the user to change its password.
LockPassword bool `json:"lockPassword"`
// These indicate if the user can perform certain actions.
AllowNew bool `json:"allowNew"` // Create files and folders
AllowEdit bool `json:"allowEdit"` // Edit/rename files