From 96a64dd6e5404706b647f42f0455b7d941402dfd Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 20 May 2005 15:38:37 +0000 Subject: [PATCH] Fixed blocklist management, hide blocklist type after editing, because LDAP wouldn't allow any "in place" changes of the objectclasses. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@302 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/gofax/blocklists/class_blocklistManagement.inc | 5 +++++ plugins/gofax/blocklists/generic.tpl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/gofax/blocklists/class_blocklistManagement.inc b/plugins/gofax/blocklists/class_blocklistManagement.inc index 3056fb6af..bc9bd46ea 100644 --- a/plugins/gofax/blocklists/class_blocklistManagement.inc +++ b/plugins/gofax/blocklists/class_blocklistManagement.inc @@ -236,6 +236,11 @@ class blocklist extends plugin $smarty->assign("$val"."ACL", chkacl($this->acl, "$val")); } + /* Lock blocklist type for non new entries */ + if ($this->dn != "new"){ + $smarty->assign('typeACL', "disabled"); + } + /* Show main page */ return($smarty->fetch (get_template_path('generic.tpl', TRUE))); } diff --git a/plugins/gofax/blocklists/generic.tpl b/plugins/gofax/blocklists/generic.tpl index 17bea618e..4ab667e1a 100644 --- a/plugins/gofax/blocklists/generic.tpl +++ b/plugins/gofax/blocklists/generic.tpl @@ -53,7 +53,7 @@

{t}Blocked numbers{/t}


  -- 2.30.2