From 8196088669b01f6840aadbcf4944a68a53453718 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 9 Oct 2009 10:18:58 +0000 Subject: [PATCH] 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 --- gosa-core/plugins/personal/posix/class_posixAccount.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ){ -- 2.30.2