Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
c0ffbddb
Unverified
Commit
c0ffbddb
authored
Oct 05, 2016
by
Vincent Petry
Browse files
Fix shared storage namespace in DecryptAll class
parent
a5d9a646
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/private/Encryption/DecryptAll.php
View file @
c0ffbddb
...
...
@@ -210,7 +210,7 @@ class DecryptAll {
$content
=
$this
->
rootView
->
getDirectoryContent
(
$root
);
foreach
(
$content
as
$file
)
{
// only decrypt files owned by the user
if
(
$file
->
getStorage
()
->
instanceOfStorage
(
'OC\Files
\Storage\Shared
'
))
{
if
(
$file
->
getStorage
()
->
instanceOfStorage
(
'OC
A
\Files
_Sharing\SharedStorage
'
))
{
continue
;
}
$path
=
$root
.
'/'
.
$file
[
'name'
];
...
...
tests/lib/Encryption/DecryptAllTest.php
View file @
c0ffbddb
...
...
@@ -239,7 +239,7 @@ class DecryptAllTest extends TestCase {
}
public
function
testDecryptUsersFiles
()
{
$storage
=
$this
->
getMockBuilder
(
'OC\Files
\Storage\Shared
'
)
$storage
=
$this
->
getMockBuilder
(
'OC
A
\Files
_Sharing\SharedStorage
'
)
->
disableOriginalConstructor
()
->
getMock
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment