From: cajus Date: Fri, 9 Oct 2009 10:18:58 +0000 (+0000) Subject: Modify ACL base to make check valid on new users X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8196088669b01f6840aadbcf4944a68a53453718;p=gosa.git Modify ACL base to make check valid on new users git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14568 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index 661eea5ca..967e0d0aa 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -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 ){