From a35fc821b53722916826bac405cbc456fa5d43c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Mon, 4 Jul 2016 11:29:16 +0200 Subject: [PATCH] Fixes #4970 Added ACL category for user templates --- include/class_template.inc | 13 +++++++++++++ include/simpleplugin/class_simpleManagement.inc | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/include/class_template.inc b/include/class_template.inc index 687e31241..7838b6095 100644 --- a/include/class_template.inc +++ b/include/class_template.inc @@ -30,6 +30,19 @@ class template protected $applied = FALSE; + function plInfo() + { + return array( + 'plShortName' => _('Template'), + 'plDescription' => _('Object template, used to create several objects with similar values'), + 'plCategory' => array('user'), + + 'plProvidedAcls' => array( + 'template_cn' => _('Template name') + ) + ); + } + function __construct($type, $dn, $targetdn = NULL) { $this->type = $type; diff --git a/include/simpleplugin/class_simpleManagement.inc b/include/simpleplugin/class_simpleManagement.inc index bac841171..caa3c24c5 100644 --- a/include/simpleplugin/class_simpleManagement.inc +++ b/include/simpleplugin/class_simpleManagement.inc @@ -242,7 +242,7 @@ class simpleManagement extends management array( 'label' => sprintf(_('%s template'), $i['name']), 'category' => $i['aclCategory'], - 'class' => 'fdTemplate', + 'class' => 'template', 'image' => $i['icon'],//FIXME 'filter' => new ldapFilter( -- GitLab