We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dfa3aaa + 56a9084 commit a06ef70Copy full SHA for a06ef70
apps/dav/appinfo/app.php
@@ -50,7 +50,13 @@ function(GenericEvent $event) use ($app) {
50
$cm = \OC::$server->getContactsManager();
51
$cm->register(function() use ($cm, $app) {
52
$user = \OC::$server->getUserSession()->getUser();
53
- if (!is_null($user)) {
54
- $app->setupContactsProvider($cm, $user->getUID());
+ if (is_null($user)) {
+ return;
55
}
56
+ if (\OC::$server->getConfig()->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes') !== 'yes') {
57
+ // Don't include system users
58
+ // This prevents user enumeration in the contacts menu and the mail app
59
60
+ }
61
+ $app->setupContactsProvider($cm, $user->getUID());
62
});
0 commit comments