diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-20 23:44:10 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-20 23:44:10 +0200 |
commit | f2b1158addeb53e2c1155228c4372209786a2133 (patch) | |
tree | 5327f3870660c127b5556447e5b9f08320b04262 /apps/files_encryption/hooks | |
parent | 1c8e5d6873b1190d73b4139ca9fd7e710ae5d1a3 (diff) | |
download | nextcloud-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.php | 15 |
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
}
/**
|