Code

Modify ACL base to make check valid on new users
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Oct 2009 10:18:58 +0000 (10:18 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 9 Oct 2009 10:18:58 +0000 (10:18 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14568 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/class_posixAccount.inc

index 661eea5ca19a227af906572a468fc09995b68eb9..967e0d0aa3118b9559d5ad65032288b25ad4ab4b 100644 (file)
@@ -197,6 +197,10 @@ class posixAccount extends plugin
 
       // Instanciate SSH object if available
       if (isset($class_mapping["sshPublicKey"])){
+        if (empty($this->acl_base)){
+          $this->acl_base= $config->current['BASE'];
+        }
+
         $this->sshAcl= $this->getacl("sshPublicKey");
         $this->ssh= new sshPublicKey($this->config, $this->dn, $this->sshAcl);
       }
@@ -500,7 +504,7 @@ class posixAccount extends plugin
     /* In 'MyAccount' mode, we must remove write acls if we are not in editing mode. */ 
     $SkipWrite = (!isset($this->parent) || !$this->parent) && !session::is_set('edit');
 
-    $smarty->assign("sshPublicKeyACL", $this->getacl("sshPublicKey"));
+    $smarty->assign("sshPublicKeyACL", $this->getacl("sshPublicKey", $SkipWrite));
 
     /* Depending on pwmode, currently hardcoded because there are no other methods */
     if ( 1 == 1 ){