summaryrefslogtreecommitdiffstats
path: root/lib/private/Contacts
Commit message (Collapse)AuthorAgeFilesLines
* Clean up the logic of the contacts store a bitJoas Schilling2021-03-111-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-111-1/+6
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-111-38/+68
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* contactsmanager shall limit number of results earlyArthur Schiwon2020-07-312-7/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-107-14/+6
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-094-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20139 from ↵Roeland Jago Douma2020-04-041-1/+1
|\ | | | | | | | | nextcloud/unify-default-value-for-restricting-user-enumeration-with-settings Unify default value for restricting user enumeration with settings
| * Unify default value for restricting user enumeration with settingsDaniel Calviño Sánchez2020-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | If the value was never enabled or disabled, the settings show "Restrict username enumeration to groups" as disabled. However, in some components it was enabled by default, which caused an inconsistency in the behaviour with respect to the settings, for example in the contacts menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Limit enumeration in contacts storeJulius Härtl2020-03-201-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not encode contacts menu mailto linksChristoph Wurst2020-01-281-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-057-14/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Respect sharing enumeration config in contacts menuJulius Härtl2019-04-181-5/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Don't fail contacts menu on unkown userRoeland Jago Douma2018-07-191-1/+7
| | | | | | | | If for some reason the system addressbook holds a user that is no longer accessible from the usermanager (so it got somehow out of sync) we should not fail hard but rather just ignore the entry. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix local users check in contacts menuChristoph Wurst2018-06-041-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused import statementsMorris Jobke2018-02-141-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make ContactsStore a public APITobia De Koninck2017-12-111-1/+2
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Change @georgehrke's emailMorris Jobke2017-11-062-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-14/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add filter for `shareapi_allow_share_dialog_user_enumeration`Lukas Reschke2017-09-151-14/+48
| | | | | | | | This adjusts the contacts menu to also support searching by email address which is relevant in scenarios where no UID is known such as LDAP, etc. Furthermore, if `shareapi_allow_share_dialog_user_enumeration` is disabled only results are shown that match the full user ID or email address. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix issue when disabling the shareapi_only_share_with_group_members option + ↵Tobia De Koninck2017-09-151-2/+12
| | | | | | fix findOne Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Improve code styleTobia De Koninck2017-09-151-5/+7
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Some code improvementsTobia De Koninck2017-09-151-4/+5
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Add testsTobia De Koninck2017-09-151-1/+1
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Fix testsTobia De Koninck2017-09-151-2/+4
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Privacy enhancements for contacts menuTobia De Koninck2017-09-151-4/+71
| | | | | | | - Groups, which are excluded from sharing should not see local users at all - If sharing is restricted to users own groups, he should only see contacts from his groups: Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Do not show an email action for contacts with emtpy email addressesChristoph Wurst2017-05-021-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add contactsmenu popoverGeorg Ehrke2017-04-262-1/+60
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use absolute URI for action iconsChristoph Wurst2017-04-251-3/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't show contacts an entry for themselvesChristoph Wurst2017-04-252-4/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Let apps register contact menu provider via info.xmlChristoph Wurst2017-04-252-14/+45
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show mail address in popover menuChristoph Wurst2017-04-251-3/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Contacts menuChristoph Wurst2017-04-257-0/+654
* load list of contacts from the server * show last message of each contact Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>