aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix checkpassword undocummented null parameterCarl Schwan2022-10-171-1/+1
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup tags and Share componentCarl Schwan2022-09-291-0/+3
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Use bigger slice in share providerCarl Schwan2022-08-161-2/+2
| | | | | | | | Probably won't make a big difference as it is unlikely a user has > 100 shares but this make sure we use the same code in spreed where the change has a bigger impact. 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>
* Multiple fixesCarl Schwan2022-07-311-8/+6
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Inherit hide download from share attributesVincent Petry2022-07-281-0/+2
| | | | | | | When resharing by link, if the download permission was removed through share attributes, convert it to the hide download flag. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix view-only code after code review commentsVincent Petry2022-07-281-1/+1
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Attempt to fix sqlite json issueVincent Petry2022-07-281-2/+2
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix share attribute related tests + code styleVincent Petry2022-07-282-16/+3
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add share attributes + prevent download permissionVincent Petry2022-07-284-1/+179
| | | | | | Makes it possible to store download permission Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix typos in lib/private subdirectoryluz paz2022-07-273-3/+3
| | | | | | 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-262-28/+19
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Recursively fetch subsharesLouis Chemineau2022-07-261-0/+18
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Prevent column name conflict between tablesLouis Chemineau2022-07-261-1/+4
| | | | 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>
* Merge pull request #32185 from nextcloud/fix/default-share-provider-oracleCarl Schwan2022-05-121-7/+18
|\ | | | | Fix getting shares in a folder on Oracle
| * Fix getting shares in a folder on OracheCarl Schwan2022-05-121-7/+18
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | 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>
* Merge pull request #31220 from nextcloud/enhancement/31005/temporary-passwordsVincent Petry2022-04-123-0/+23
|\ | | | | Temporary passwords for public non-anonymous protected shares (ie: files shared with an email recipient).
| * Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-113-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #31610 from nextcloud/shares-in-folder-mountsVincent Petry2022-04-111-1/+14
|\ \ | |/ |/| fix shared mount roots not being returned from `getSharesInFolder`
| * fix shared mount roots not being returned from `getSharesInFolder`Robin Appelman2022-03-311-1/+14
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | 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>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to pass note when creating a share and send it with directly in the ↵Julius Härtl2021-12-032-2/+12
| | | | | | share mail when set Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix warning about passing null to substr_countCôme Chilliet2021-11-231-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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
|
* Merge pull request #26688 from nextcloud/enh/better-share-exceptiondebugJohn Molakvoæ2021-10-131-1/+1
|\
| * Add proper message to created share not foundJohn Molakvoæ (skjnldsv)2021-08-181-1/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Let users choose a share_folderHinrich Mahler2021-09-061-1/+10
|/
* Admin Audit - Sharing: createShare - report the full pathszaimen2021-07-221-0/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* 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-0411-17/+10
| | | | 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>
* | Rename External storages to External storageszaimen2021-05-201-1/+1
| | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* | l10n: Unify spellingValdnet2021-05-201-13/+13
| | | | | | Spelling unification in Nextcloud applications.
* | l10n: Unify spellingValdnet2021-05-201-5/+5
|/ | | Spelling unification in Nextcloud applications.
* Correclty use plural for share exceptionJoas Schilling2021-04-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Separate settings for remote share expirationVincent Petry2021-04-151-8/+47
| | | | | | | Added separate settings for default and enforced expiration date for remote shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>