Introduce setting global.store_roles_in_db

This commit is contained in:
Alexander A. Klimov 2024-04-12 09:49:30 +02:00
parent 7d97d6ea89
commit 7be9d7640b
2 changed files with 14 additions and 1 deletions

View File

@ -100,6 +100,17 @@ class ApplicationConfigForm extends Form
)
);
$this->addElement(
'checkbox',
'global_store_roles_in_db',
[
'label' => $this->translate('Store Roles in Database'),
'description' => $this->translate(
'Set whether to store roles used for access control in the database selected above.'
)
]
);
return $this;
}
}

View File

@ -29,14 +29,16 @@ Option | Description
show\_stacktraces | **Optional.** Whether to show debug stacktraces. Defaults to `0`.
module\_path | **Optional.** Specifies the directories where modules can be installed. Multiple directories must be separated with colons.
config\_resource | **Required.** Specify a defined [resource](04-Resources.md#resources-configuration-database) name.
store\_roles\_in\_db | **Optional.** Whether to store roles used for access control in the database specified above. Defaults to `0`.
Example for storing the user preferences in the database resource `icingaweb_db`:
Example for storing the user preferences and roles in the database resource `icingaweb_db`:
```
[global]
show_stacktraces = "0"
config_resource = "icingaweb_db"
store_roles_in_db = "1"
module_path = "/usr/share/icingaweb2/modules"
```