summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/hooks
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-20 23:44:10 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-20 23:44:10 +0200
commitf2b1158addeb53e2c1155228c4372209786a2133 (patch)
tree5327f3870660c127b5556447e5b9f08320b04262 /apps/files_encryption/hooks
parent1c8e5d6873b1190d73b4139ca9fd7e710ae5d1a3 (diff)
downloadnextcloud-server-f2b1158addeb53e2c1155228c4372209786a2133.tar.gz
nextcloud-server-f2b1158addeb53e2c1155228c4372209786a2133.zip
improved tests
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r--apps/files_encryption/hooks/hooks.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php
index e3196480457..53afefc721b 100644
--- a/apps/files_encryption/hooks/hooks.php
+++ b/apps/files_encryption/hooks/hooks.php
@@ -225,15 +225,20 @@ class Hooks {
break;
}
+ $error = false;
foreach ($users as $user) {
if (!$view->file_exists($user . '.public.key')) {
- // Set flag var 'run' to notify emitting
- // script that hook execution failed
- $params['run']->run = false;
- // TODO: Make sure files_sharing provides user
- // feedback on failed share
+ $error = true;
+ break;
}
}
+
+ if($error)
+ // Set flag var 'run' to notify emitting
+ // script that hook execution failed
+ $params['run']->run = false;
+ // TODO: Make sure files_sharing provides user
+ // feedback on failed share
}
/**