Verified Commit a46bab4e authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(dyngroup) Small style fixes

issue #6062
Showing with 11 additions and 7 deletions
+11 -7
<?php <?php
/* /*
This code is part of FusionDirectory (http://www.fusiondirectory.org/) This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2003 Cajus Pollmeier Copyright (C) 2003 Cajus Pollmeier
...@@ -36,24 +35,26 @@ class dynamicGroup extends simplePlugin ...@@ -36,24 +35,26 @@ class dynamicGroup extends simplePlugin
'ou' => get_ou('ogroupRDN'), 'ou' => get_ou('ogroupRDN'),
'icon' => 'geticon.php?context=types&icon=dyngroup&size=16', 'icon' => 'geticon.php?context=types&icon=dyngroup&size=16',
]], ]],
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo()) 'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
]; ];
} }
static function getAttributesInfo (): array static function getAttributesInfo (): array
{ {
global $config;
$memberAttribute = new SetAttribute( $memberAttribute = new SetAttribute(
new StringAttribute( new StringAttribute(
'', _('Group members'), 'member', FALSE )); '', _('Group members'),
'member', FALSE
)
);
$memberAttribute->setDisabled(TRUE); $memberAttribute->setDisabled(TRUE);
return [ return [
'main' => [ 'main' => [
'name' => _('Properties'), 'name' => _('Properties'),
'attrs' => [ 'attrs' => [
new BaseSelectorAttribute(get_ou('groupRDN')), new BaseSelectorAttribute(get_ou('ogroupRDN')),
new StringAttribute( new StringAttribute(
_('Name'), _('Name of this group'), _('Name'), _('Name of this group'),
'cn', TRUE, 'cn', TRUE,
...@@ -77,10 +78,13 @@ class dynamicGroup extends simplePlugin ...@@ -77,10 +78,13 @@ class dynamicGroup extends simplePlugin
new SetAttribute( new SetAttribute(
new StringAttribute( new StringAttribute(
_('member URL'), _('URL of member of this group'), _('member URL'), _('URL of member of this group'),
'memberURL', FALSE, '', '', '/^ldap:\/\/\/[\w=,]+\?[\w=,]*\?\w+\?[&|()\w=*]+$/', 'ldap:///BASE_DN??SCOPE?FILTER' 'memberURL', FALSE,
'', '',
'/^ldap:\/\/\/[\w=,]+\?[\w=,]*\?\w+\?[&|()\w=*]+$/',
'ldap:///BASE_DN??SCOPE?FILTER'
) )
) )
] ]
] ]
]; ];
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment