Code

Updated posix ssh key handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Oct 2009 08:53:25 +0000 (08:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Oct 2009 08:53:25 +0000 (08:53 +0000)
-disable prototype while in ssh key dialog

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14578 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 967e0d0aa3118b9559d5ad65032288b25ad4ab4b..43219aa6e60a0aab28d3c4be1e6c84b07d0dbc1e 100644 (file)
@@ -489,7 +489,8 @@ class posixAccount extends plugin
     }
 
     // Handle ssh dialog?
-    if ($this->ssh && preg_match('/[rw]/', $this->getacl("sshPublicKey"))) {
+    if ($this->ssh instanceOf sshPublicKey && preg_match('/[rw]/', $this->getacl("sshPublicKey"))) {
+        $smarty->assign("usePrototype", "false");
        if ($result= $this->ssh->execute()) {
          $this->dialog= true;
          return $result;