From: cajus Date: Fri, 20 May 2005 15:38:37 +0000 (+0000) Subject: Fixed blocklist management, hide blocklist type after editing, because LDAP wouldn... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=96a64dd6e5404706b647f42f0455b7d941402dfd;p=gosa.git 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 --- 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}