From 2ffcd03c161da598b61e11da1b5bf676a088262a Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 Sep 2006 04:19:15 +0000 Subject: [PATCH] Fixed lsit of available tempaltes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4611 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index d2aea37b4..8987b6a76 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -433,7 +433,7 @@ class userManagement extends plugin $acl = $ui->get_permissions("cn=dummy,".$this->DivListUsers->selectedBase,"users/user") ; /* If creation of a new user is allowed, append this template */ - if (preg_match("/cw/",$acl)){ + if (preg_match("/r/",$acl)){ /* Search all templates from the current dn */ $ldap->cd (get_people_ou().$value); @@ -462,6 +462,7 @@ class userManagement extends plugin /* Check selected options for template */ if (isset($_POST['template_continue'])){ + $message = array(); if(!isset($_POST['template']) || (empty($_POST['template']))){ $message[] = _("Please select a valid template."); } @@ -486,7 +487,6 @@ class userManagement extends plugin $smarty->assign("templates",$this->templates); $smarty->assign("got_uid",$this->got_uid); $smarty->assign("edit_uid",false); - return($smarty->fetch(get_template_path('template.tpl', TRUE))); } -- 2.30.2