summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/Principal.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(dav): check if principal has email address before accessing itRichard Steinmetz2023-01-241-2/+2
| | | | | | Ref https://github.com/nextcloud/calendar/issues/4811 Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Fix duplicate event email notificationsRichard Steinmetz2022-11-041-0/+40
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Expose additional emails in {DAV:}alternate-URI-setThomas Citharel2022-05-171-0/+16
| | | | | | | | | This allows iMip invitations to be send with an alternative email as "Reply-To" field. Closes #27201 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Use email settings in DAV searchLouis Chemineau2022-04-191-1/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use share setting in DAV searchLouis Chemineau2022-04-191-2/+4
| | | | | | shareapi_restrict_user_enumeration_full_match_ignore_second_display_name was introduced to ignore second display name during search from the share panel. But this setting was not respected by search from the calendar application. This fix it. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Principal search by display name case insensitiveVincent Petry2022-04-081-2/+3
| | | | | | | | Adjust principal search to be case insensitive even with exact match. This aligns the behavior to how the search also works in Collaborators/UserPlugin Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* use specific email getter where necessaryArthur Schiwon2021-09-091-5/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Expose user language through DAVThomas Citharel2021-08-161-0/+6
| | | | | | | | | Introduces the '{http://nextcloud.com/ns}language' prop that gives the user's language Closes #28449 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* migration to Circles 22Maxence Lange2021-05-291-4/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-101-13/+23
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-101-33/+55
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-4/+4
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* do not remove valid group sharesArthur Schiwon2021-01-191-2/+18
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-1/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* dav search to honour sharing.maxAutocompleteResults settingArthur Schiwon2020-12-151-1/+2
| | | | | | | - it is being used on frontend by users - user and big instances benefit from quicker results and less load Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* A valid user session is required for circles.Daniel Kesselberg2020-11-261-1/+3
| | | | | | The circles app depends on a valid userId. A public shared calender might be viewed by guests without a user session. For such requests the principal is null. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update phpdoc for circleToPrincipalDaniel Kesselberg2020-11-261-8/+1
| | | | | | as the QueryException is already catched inside circleToPrincipal. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Mitigate encoding issue with user principal uriGeorg Ehrke2020-09-101-1/+5
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-4/+4
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Limit enumeration in principal searchJulius Härtl2020-03-201-1/+28
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersChristoph Wurst2019-12-051-5/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* respect shareapi_allow_share_dialog_user_enumeration in Principal backend ↵Georg Ehrke2019-12-031-0/+21
| | | | | | for Sabre/DAV Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* use principaluri instead of userid, allowing to add delegates for rooms and ↵Georg Ehrke2019-08-151-103/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | things Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup add owner_id and proxy_id as db index, since we use it for querying Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup don't add ACL for each individual proxy, just use calendar-proxy groups Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup allow delegation of resources / rooms Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup fix addIndex call in migration Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup fix remaining constructor calls of Principal Signed-off-by: Georg Ehrke <developer@georgehrke.com> !fixup minor fixes and unit tests Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Early first stage implementation of the groupsetRoeland Jago Douma2019-08-151-2/+54
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use the proxymapper to obtain valid proxy dataRoeland Jago Douma2019-08-151-14/+32
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Typehint builtin types in constructor to not initiate autoloadingRoeland Jago Douma2019-06-041-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* implement principal property search for calendar user address set propertyGeorg Ehrke2019-03-211-0/+10
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Created infrastructure to show circles' shared filesVinicius Cubas Brand2019-03-131-5/+10
| | | | | | | | | | | | | | There is a proposal to allow users to filter files shared to circles. This commit is needed to provide the infrastucture for it. Issue: https://github.com/nextcloud/circles/issues/137 Changes to comply to https://github.com/coletivoEITA/circles/pull/2 Polishing: get files shared to circles in caldav Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com> Signed-off-by: Maxence Lange <maxence@artificial-owl.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use proper dependency injection for app managerMorris Jobke2019-03-051-2/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Suppress phan exceptions because they are catched by a class_existsMorris Jobke2019-03-051-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* use class_exists on correct class to please phanGeorg Ehrke2019-03-041-2/+2
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* properly catch exceptions of detailsCircleGeorg Ehrke2019-03-031-1/+9
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Get user's circles without touching sessionVinicius Cubas Brand2019-03-011-6/+1
| | | | | | This works with nextcloud/circles#260 Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* allow sharing addressbooks with circlesGeorg Ehrke2019-03-011-2/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Share calendar to circleVinicius Cubas Brand2019-03-011-1/+70
| | | | | | | * Allow user to share calendar with a circle * Allow user to see calendars shared with his/her circles Signed-off-by: Vinicius Cubas Brand <viniciuscb@gmail.com>
* allow user principal search for dav displayname propertyGeorg Ehrke2018-10-221-2/+22
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* move disableFreeBusy check from User principal backend to Scheduling Outbox ↵Georg Ehrke2018-10-161-6/+4
| | | | | | collection. This allows to keep local delivery of scheduling messages while prohibiting FreeBusy requests Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Merge pull request #9550 from ↵Morris Jobke2018-06-011-4/+15
|\ | | | | | | | | nextcloud/bugfix/noid/override_freebusy_sharing_rules allow admins to disable FreeBusy without modifying ShareAPI capabilities
| * allow admins to override FreeBusy capabilities without modifying ShareAPI ↵Georg Ehrke2018-05-221-4/+15
| | | | | | | | | | | | capabilities Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | When sharing calendars and addressbooks the principal has to be verified to ↵Roeland Jago Douma2018-05-271-0/+7
|/ | | | | | | | be valid https://github.com/owncloud/core/pull/30149/commits/d3fb8fcdd3a6b00bde0c3c9eb4039876e7fc1967 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused import statementsMorris Jobke2018-02-141-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>