- create and edit administrators: password (min 4, max 72 bytes, bcrypt at admin.password.bcrypt_cost), role picker, radio permission overrides, superuser switch; no mail on create - superusers hidden from non-superusers in list, lookups and schemas; is_superuser projected to superusers so an untouched save keeps it - save-path rules: superuser-only switch, role and permission ceilings, no outranking, no own role/flag/overrides/password change, last active superuser not demoted (advisory lock + count in the write tx) - password set for another admin bumps tokens_valid_after - role, superuser, activation and last sign-in list filters
22 lines
595 B
YAML
22 lines
595 B
YAML
name: backend::lang.user.name
|
|
form: ~/plugins/summercms/cabana/models/user/fields.yaml
|
|
modelClass: Backend\Models\User
|
|
defaultRedirect: summercms/cabana/users
|
|
|
|
create:
|
|
redirect: summercms/cabana/users/preview/:id
|
|
redirectClose: summercms/cabana/users
|
|
|
|
update:
|
|
redirect: summercms/cabana/users/update/:id
|
|
redirectClose: summercms/cabana/users/preview/:id
|
|
|
|
preview: {}
|
|
|
|
messages:
|
|
create: backend::lang.user.new
|
|
update: backend::lang.messages.form.update
|
|
saved: backend::lang.messages.form.saved
|
|
edit: backend::lang.user.edit
|
|
preview: backend::lang.user.preview
|