From: hickert Date: Thu, 9 Nov 2006 08:05:45 +0000 (+0000) Subject: Skip saving user certificate in copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf667484b2c09ab24a70c317f5b1a06e4fb5492d;p=gosa.git Skip saving user certificate in copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index cbc936215..cc0d30ac2 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1301,6 +1301,23 @@ class user extends plugin } } } + + + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + /* Reset certificate information addepted from source user + to avoid setting the same user certificate for the destination user. */ + $this->userPKCS12= ""; + $this->userSMIMECertificate= ""; + $this->userCertificate= ""; + $this->certificateSerialNumber= ""; + $this->old_certificateSerialNumber= ""; + $this->old_userPKCS12= ""; + $this->old_userSMIMECertificate= ""; + $this->old_userCertificate= ""; + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: