diff options
author | Sam Tuke <samtuke@owncloud.com> | 2013-03-29 21:11:29 +0100 |
---|---|---|
committer | Sam Tuke <samtuke@owncloud.com> | 2013-03-29 21:11:29 +0100 |
commit | 14451bdaf07f88c6ac46092c74b987a360b04547 (patch) | |
tree | f6c311d359e121c4005abb392bf192628365966d /apps/files_encryption/hooks | |
parent | 3cbfacb439396b411f1cd89f1eb232704e6b5d55 (diff) | |
download | nextcloud-server-14451bdaf07f88c6ac46092c74b987a360b04547.tar.gz nextcloud-server-14451bdaf07f88c6ac46092c74b987a360b04547.zip |
Development snapshot;
Fixed errors from Hooks::login();
Work on enable/disable recoveryAdmin for lost passwords in settings page (template, ajax, js);
Work on fixing sharing files to users (still broken);
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 302671889d3..43d3dfb5a6a 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -40,7 +40,7 @@ class Hooks { // Manually initialise Filesystem{} singleton with correct
// fake root path, in order to avoid fatal webdav errors
- \OC\Files\Filesystem::init( $params['uid'] . '/' . 'files' . '/' );
+ \OC\Files\Filesystem::init( $params['uid'], '/' . 'files' . '/' );
$view = new \OC_FilesystemView( '/' );
@@ -194,7 +194,8 @@ class Hooks { $util = new Util( $view, $userId );
$path = $util->fileIdToPath( $params['itemSource'] );
- $usersSharing = \OCP\Share::getUsersSharingFile( $path, true );
+ // Note: this currently doesn't include the owner due to \OC\Files\Filesystem::getOwner()
+ $usersSharing = $util->getUsersSharingFile( $path );
// Recursively expand path to include subfiles
$allPaths = $util->getPaths( $path );
|