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

:tractor: feat(sympa) Migrate sympa to new management class

issue #5914
Showing with 3 additions and 32 deletions
+3 -32
......@@ -31,6 +31,7 @@ class sympaAlias extends simplePlugin
'icon' => 'geticon.php?context=applications&icon=sympa&size=16',
'ou' => get_ou('sympaRDN'),
)),
'plSearchAttrs' => array('description'),
'plProvidedAcls' => parent::generatePlProvidedAcls(static::getAttributesInfo())
);
......
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2010 Antoine Gallavardin
Copyright (C) 2012-2017 FusionDirectory
Copyright (C) 2012-2019 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -21,12 +22,6 @@
class sympaManagement extends simpleManagement
{
// Tab definition
protected $objectTypes = array('sympaAlias');
protected $autoFilterAttributes = array('dn', 'cn', 'description');
/* Return plugin information for acl handling */
public static function plInfo()
{
return array(
......@@ -36,9 +31,6 @@ class sympaManagement extends simpleManagement
'plSection' => 'accounts',
'plPriority' => 26,
'plManages' => array('sympaAlias'),
'plProvidedAcls' => array()
);
}
}
?>
<?php
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org)
Copyright (C) 2017 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
simpleManagement::mainInc('sympaManagement');
?>
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