Code

Fixed user certiciate ACLs.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 09:20:58 +0000 (09:20 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 9 Jul 2008 09:20:58 +0000 (09:20 +0000)
-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

gosa-core/plugins/personal/generic/class_user.inc

index 9990c0219d38664315e0dc5a18a80f6f2d3d476e..42d3c83a0218ff6e8211f46083035080f59e89a2 100644 (file)
@@ -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'))));