Commit 6332213e authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(management) Various fixes of plInfo

Removes useless plCategory and plSelfModify, add plFilter and
 plSmallIcon when needed for groupManagement or userManagement.
parent 40115c14
......@@ -30,7 +30,6 @@ class mailAliasDistribution extends simplePlugin
return array(
'plShortName' => _('Temporary mail distribution'),
'plDescription' => _('Temporary mail distribution'),
'plSelfModify' => FALSE,
'plObjectType' => array('mailAliasDistribution' => array(
'name' => _('Temporary mail distribution'),
'filter' => 'objectClass=mailAliasDistribution',
......
......@@ -30,7 +30,6 @@ class mailAliasRedirection extends simplePlugin
return array(
'plShortName' => _('Temporary mail redirection'),
'plDescription' => _('Temporary mail redirection'),
'plSelfModify' => FALSE,
'plObjectType' => array('mailAliasRedirection' => array(
'name' => _('Temporary mail redirection'),
'filter' => 'objectClass=mailAliasRedirection',
......
......@@ -27,7 +27,6 @@ class aliasConfig extends simplePlugin
return array(
"plShortName" => _("Alias configuration"),
"plDescription" => _("FusionDirectory alias plugin configuration"),
"plSelfModify" => FALSE,
"plCategory" => array("configuration"),
"plObjectType" => array("smallConfig"),
......
......@@ -29,6 +29,8 @@ class applicationRights extends simplePlugin
return array(
'plShortName' => _('Applications'),
'plDescription' => _('Applications allowed for this role'),
'plFilter' => '(objectClass=fdApplicationRights)',
'plSmallIcon' => 'geticon.php?context=mimetypes&icon=application-x-executable&size=16',
'plObjectType' => array('role'),
'plForeignKeys' => array(
'fdApplicationAllowed' => 'webApplication',
......
......@@ -126,7 +126,6 @@ class argonautClient extends simplePlugin
return array(
'plShortName' => _('Argonaut client'),
'plDescription' => _('Edit argonaut client settings'),
'plSelfModify' => FALSE,
'plObjectType' => array('workstation','server','terminal','ogroup-dynamic'),
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
......
......@@ -27,7 +27,6 @@ class autofsConfig extends simplePlugin
return array(
"plShortName" => _("Autofs configuration"),
"plDescription" => _("FusionDirectory autofs plugin configuration"),
"plSelfModify" => FALSE,
"plCategory" => array("configuration"),
"plObjectType" => array("smallConfig"),
......
......@@ -167,7 +167,6 @@ class debconfProfileGeneric extends simplePlugin
return array(
'plShortName' => _('Debconf profile'),
'plDescription' => _('Debconf profile information'),
'plSelfModify' => FALSE,
'plObjectType' => array('debconfProfile' => array(
'name' => _('Debconf profile'),
'filter' => '(&(objectClass=organizationalUnit)(!(objectClass=gosaDepartment)))',
......
......@@ -27,7 +27,6 @@ class dnsConfig extends simplePlugin
return array(
"plShortName" => _("DNS configuration"),
"plDescription" => _("FusionDirectory dns plugin configuration"),
"plSelfModify" => FALSE,
"plCategory" => array("configuration"),
"plObjectType" => array("smallConfig"),
......
......@@ -27,7 +27,6 @@ class dsaConfig extends simplePlugin
return array(
"plShortName" => _("DSA configuration"),
"plDescription" => _("FusionDirectory dsa plugin configuration"),
"plSelfModify" => FALSE,
"plCategory" => array("configuration"),
"plObjectType" => array("smallConfig"),
......
......@@ -27,7 +27,6 @@ class ejbcaConfig extends simplePlugin
return array(
"plShortName" => _("EJBCA plugin configuration"),
"plDescription" => _("FusionDirectory ejbca plugin configuration"),
"plSelfModify" => FALSE,
"plCategory" => array("configuration"),
"plObjectType" => array("smallConfig"),
......
......@@ -63,7 +63,6 @@ class faiStartup extends simplePlugin
return array(
'plShortName' => _('FAI'),
'plDescription' => _('Full automated installation'),
'plSelfModify' => FALSE,
'plPriority' => 9,
'plObjectType' => array('workstation', 'server', 'ogroup-dynamic'),
'plForeignKeys' => array(
......
......@@ -27,7 +27,6 @@ class faiConfig extends simplePlugin
return array(
'plShortName' => _('FAI configuration'),
'plDescription' => _('FusionDirectory fai plugin configuration'),
'plSelfModify' => FALSE,
'plObjectType' => array('configuration'),
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
......
......@@ -34,6 +34,7 @@ class freeradiusAccount extends simplePlugin {
return array(
'plShortName' => _('Freeradius'),
'plDescription' => _('This Plugin is for Radius accounting based in FreeRadius'),
'plFilter' => '(objectClass=radiusprofile)',
'plIcon' => 'geticon.php?context=applications&icon=freeradius&size=48',
'plSmallIcon' => 'geticon.php?context=applications&icon=freeradius&size=16',
'plSelfModify' => TRUE,
......
......@@ -28,8 +28,6 @@ class ipmiClient extends simplePlugin
return array(
'plShortName' => _('IPMI client'),
'plDescription' => _('Edit IPMI client settings'),
'plSelfModify' => FALSE,
'plCategory' => array('workstation','server'),
'plObjectType' => array('workstation','server'),
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
......
......@@ -28,7 +28,6 @@ class csvimport extends simplePlugin
return array(
'plShortName' => _('CSV import'),
'plDescription' => _('Import of csv data into the ldap tree'),
'plSelfModify' => FALSE,
'plObjectType' => array('ldapmanager'),
'plPriority' => 3,
......
......@@ -28,7 +28,6 @@ class mixedGroup extends simplePlugin
return array(
'plShortName' => _('Posix group'),
'plDescription' => _('Posix group settings'),
'plSelfModify' => FALSE,
'plObjectType' => array('ogroup-user'),
'plPriority' => 1,
......
......@@ -27,7 +27,6 @@ class nagiosConfig extends simplePlugin
return array(
'plShortName' => _('Nagios configuration'),
'plDescription' => _('FusionDirectory nagios plugin configuration'),
'plSelfModify' => FALSE,
'plCategory' => array('configuration'),
'plObjectType' => array('smallConfig'),
......
......@@ -39,6 +39,7 @@ class nagiosAccount extends simplePlugin
return array(
'plShortName' => _('Nagios'),
'plDescription' => _('Nagios account settings'),
'plFilter' => '(objectClass=lconfContact)',
'plIcon' => 'geticon.php?context=applications&icon=nagios&size=48',
'plSmallIcon' => 'geticon.php?context=applications&icon=nagios&size=16',
'plSelfModify' => TRUE,
......
......@@ -50,7 +50,6 @@ class netgroup extends simplePlugin
return array(
'plShortName' => _('Netgroup'),
'plDescription' => _('NIS Netgroup settings'),
'plSelfModify' => FALSE,
'plObjectType' => array('netgroup' => array(
'name' => _('NIS Netgroup'),
'filter' => 'objectClass=nisNetgroup',
......
......@@ -26,7 +26,6 @@ class netgroupSystem extends netgroupMembership {
return array(
'plShortName' => _('NIS Netgroup'),
'plDescription' => _('NIS Netgroup member'),
'plSelfModify' => FALSE,
'plPriority' => 3,
'plObjectType' => array('workstation','terminal','server','printer'),
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
......
Markdown is supported
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