[Pkg-owncloud-commits] [owncloud] 152/258: make sure that the users file system is initialized before we emit the post hook

David Prévot taffit at moszumanska.debian.org
Sat Oct 11 17:22:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 79f534610535bbabb74ac3e009ae0c764814f3bb
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Tue Sep 30 13:14:04 2014 +0200

    make sure that the users file system is initialized before we emit the post hook
---
 lib/private/user/manager.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php
index a54755e..d301341 100644
--- a/lib/private/user/manager.php
+++ b/lib/private/user/manager.php
@@ -263,6 +263,13 @@ class Manager extends PublicEmitter implements IUserManager {
 			if ($backend->implementsActions(\OC_USER_BACKEND_CREATE_USER)) {
 				$backend->createUser($uid, $password);
 				$user = $this->getUserObject($uid, $backend);
+
+				// make sure that the users file system is initialized before we
+				// emit the post hook
+				if (!\OC_User::isLoggedIn()) {
+					\OC_Util::setupFS($uid);
+				}
+
 				$this->emit('\OC\User', 'postCreateUser', array($user, $password));
 				return $user;
 			}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list