From 6d64d7ec3fb64d6b2f196d4008f59b64e5a50446 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 27 Mar 2014 18:01:14 +0100 Subject: LDAP: put out fetching of user meta data into a fully tested class of its own and update them (mail, quota, etc.) directly after mapping. Fixes #7785 properly on master --- apps/user_ldap/lib/filesystemhelper.php | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 apps/user_ldap/lib/filesystemhelper.php (limited to 'apps/user_ldap/lib/filesystemhelper.php') diff --git a/apps/user_ldap/lib/filesystemhelper.php b/apps/user_ldap/lib/filesystemhelper.php new file mode 100644 index 00000000000..d85173c1f96 --- /dev/null +++ b/apps/user_ldap/lib/filesystemhelper.php @@ -0,0 +1,46 @@ +. + * + */ + +namespace OCA\user_ldap\lib; + +/** + * @brief wraps around static ownCloud core methods + */ +class FilesystemHelper { + + /** + * @brief states whether the filesystem was loaded + * @return bool + */ + public function isLoaded() { + return \OC\Files\Filesystem::$loaded; + } + + /** + * @brief initializes the filesystem for the given user + * @param string the ownCloud username of the user + */ + public function setup($uid) { + \OC_Util::setupFS($uid); + } +} \ No newline at end of file -- cgit v1.2.3