fix encryption to owncloud user for public link shares

This commit is contained in:
Björn Schießle 2013-04-22 14:30:10 +02:00
parent b57478fa27
commit b5cb5dab51
3 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class Keymanager {
\OC_FileProxy::$enabled = false; \OC_FileProxy::$enabled = false;
return $view->file_get_contents( '/public-keys/' . '/' . $userId . '.public.key' ); return $view->file_get_contents( '/public-keys/' . $userId . '.public.key' );
\OC_FileProxy::$enabled = true; \OC_FileProxy::$enabled = true;

View File

@ -668,7 +668,7 @@ class Util {
// public system user 'ownCloud' (for public shares) // public system user 'ownCloud' (for public shares)
if ( if (
$util->ready() $util->ready()
or $user == 'ownCloud' or $user == 'owncloud'
) { ) {
// Construct array of ready UIDs for Keymanager{} // Construct array of ready UIDs for Keymanager{}

View File

@ -200,7 +200,7 @@ class Share {
} }
if ($result->fetchRow()) { if ($result->fetchRow()) {
$shares[] = "ownCloud"; $shares[] = "owncloud";
} }
} }
// Include owner in list of users, if requested // Include owner in list of users, if requested