mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
parent
99502a77e0
commit
0cff2ca545
@ -28,7 +28,7 @@ class RoleForm extends ConfigForm
|
|||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $providedRestrictions = array();
|
protected $providedRestrictions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
@ -71,8 +71,22 @@ class RoleForm extends ConfigForm
|
|||||||
*/
|
*/
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
$helper = new Zend_Form_Element('bogus');
|
$helper = new Zend_Form_Element('bogus');
|
||||||
|
$this->providedRestrictions = array(
|
||||||
|
$helper->filterName('application/share/users') => array(
|
||||||
|
'name' => 'application/share/users',
|
||||||
|
'description' => $this->translate(
|
||||||
|
'Restrict which users this role can share items and information with'
|
||||||
|
)
|
||||||
|
),
|
||||||
|
$helper->filterName('application/share/groups') => array(
|
||||||
|
'name' => 'application/share/groups',
|
||||||
|
'description' => $this->translate(
|
||||||
|
'Restrict which groups this role can share items and information with'
|
||||||
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$mm = Icinga::app()->getModuleManager();
|
$mm = Icinga::app()->getModuleManager();
|
||||||
foreach ($mm->listInstalledModules() as $moduleName) {
|
foreach ($mm->listInstalledModules() as $moduleName) {
|
||||||
$modulePermission = $mm::MODULE_PERMISSION_NS . $moduleName;
|
$modulePermission = $mm::MODULE_PERMISSION_NS . $moduleName;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user