mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Introduce setting global.store_roles_in_db
This commit is contained in:
parent
7d97d6ea89
commit
7be9d7640b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user