summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20/Manager.php
Commit message (Collapse)AuthorAgeFilesLines
* refactor: make share manager buildableRobin Appelman2024-03-061-2/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-4/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-221-10/+16
| | | | | | | | Because of timezones, not saving time can lead to unexpected behaviour when sharing an item sooner than timezone offset Example: sharing a file before 9am when in UTC+9 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix: phpunitJohn Molakvoæ2024-02-131-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* feat(php,vue): Create a new parameterBaptiste Fotia2024-01-311-1/+24
| | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* fix(manager): removed dead codeEduardo Morales2023-12-181-7/+1
| | | | Signed-off-by: Eduardo Morales <emoral435@gmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-6/+6
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-36/+5
|\ | | | | move share permission logic to storage wrapper
| * cleanup di for share permissions wrapperRobin Appelman2023-08-161-36/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use nullsafe call syntax instead of additionnal checkCôme Chilliet2023-08-281-1/+1
| | | | | | | | Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* | Set files_sharing:hide_disabled_user_shares to 'yes' to hide shares from ↵Côme Chilliet2023-08-281-5/+19
|/ | | | | | disabled users Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove legacy dispatcher from share managerJoas Schilling2023-07-281-6/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate Share accepted event to typed eventJoas Schilling2023-07-281-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate unShare events to typed eventsJoas Schilling2023-07-281-14/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate Sharing events to typed eventsJoas Schilling2023-07-281-8/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Move Sharing events to IEventDispatcherJoas Schilling2023-07-271-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix types for reading and writing config valuesjld31032023-04-051-1/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* also set the node when re-using existing share on share createRobin Appelman2023-04-031-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+1
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* composer run cs:fixCôme Chilliet2023-01-201-2/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix checkpassword undocummented null parameterCarl Schwan2022-10-171-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* don't reduce file public link permissions if public upload is not enabledJulien Veyssier2022-08-011-2/+2
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Fix share attribute related tests + code styleVincent Petry2022-07-281-14/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-281-0/+14
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Add argument to getSharesInFolder enable deep share lookupLouis Chemineau2022-07-261-21/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Recursively fetch subsharesLouis Chemineau2022-07-261-0/+18
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Rename setting name to reduce its lengthLouis Chemineau2022-06-271-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use email settings in DAV searchLouis Chemineau2022-04-191-0/+4
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Use share setting in DAV searchLouis Chemineau2022-04-191-0/+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>
* Adjust settings for mail link passwordVincent Petry2022-04-141-17/+5
| | | | | | | | | Rename the settings and invert the meaning. Increase default interval to one hour. Changed the interval to be a number of seconds, to align with other setting styles. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Default to permanent link passwordsVincent Petry2022-04-131-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Properly reset pw expirationVincent Petry2022-04-131-0/+37
| | | | | | | When requesting a new password for share by mail link, now we correctly reset the expiration date. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-111-0/+6
| | | | | | | | | | | | | | | | | | shares of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves. - Creates a migration step for the files_sharing app to add the 'password_expiration_time' attribute to the oc_shares table. - Makes share temporary passwords' expiration time configurable via a system value. - Adds a system config value to allow permanent share passwords -Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue See https://github.com/nextcloud/server/issues/31005 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
* Merge pull request #31194 from ↵Vincent Petry2022-04-061-1/+13
|\ | | | | | | | | nextcloud/feat/allow-to-exclude-groups-from-password-enforcement Allow to disable password policy enforcement for selected groups
| * Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-1/+13
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-5/+4
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow to pass note when creating a share and send it with directly in the ↵Julius Härtl2021-12-031-2/+8
| | | | | | share mail when set Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move common logic to share managerJoas Schilling2021-11-091-1/+43
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Patch for master-branchJanBartels2021-10-181-1/+1
|
* Let users choose a share_folderHinrich Mahler2021-09-061-1/+10
|
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Fix share activity dispatchLouis Chemineau2021-06-161-0/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+4
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use noreply@ as email address for share emailsMorris Jobke2021-05-281-1/+1
| | | | | | | | Fixes #26683 Before it used the instance name, which a) doesn't make sense to randomly guess email addresses and b) could contain characters that are not allowed in email addresses like spaces. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #26727 from nextcloud/group-exclude-link-shareMorris Jobke2021-05-211-60/+60
|\ | | | | Add option to exclude groups from creating link shares
| * allow excluding groups from creating link sharesRobin Appelman2021-05-121-60/+60
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>