From: hickert Date: Wed, 9 Jul 2008 09:20:58 +0000 (+0000) Subject: Fixed user certiciate ACLs. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ca30e7fb77d7385468b00f8e7cf619182f55dae;p=gosa.git Fixed user certiciate ACLs. -The certificate buttom was enabled, even if we were not in the edit mode. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11575 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 9990c0219..42d3c83a0 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -632,7 +632,13 @@ class user extends plugin $smarty->assign("pw_configurable", $is_configurable); $smarty->assign("passwordStorageACL", $this->getacl("userPassword",(!is_object($this->parent) && !session::is_set('edit')))); $smarty->assign("base_select", $this->base); - $smarty->assign("CertificatesACL", $this->getacl("Certificate",(!is_object($this->parent) && !session::is_set('edit')))); + + if(!session::is_set('edit')){ + $smarty->assign("CertificatesACL",""); + }else{ + $smarty->assign("CertificatesACL", $this->getacl("Certificate")); + } + $smarty->assign("userPictureACL", $this->getacl("userPicture",(!is_object($this->parent) && !session::is_set('edit')))); $smarty->assign("userPicture_is_readable", $this->acl_is_readable("userPicture",(!is_object($this->parent) && !session::is_set('edit'))));