aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Controller/ShareController.php
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Disable link shares of disabled usersRoeland Jago Douma2020-02-071-0/+12
|/ / | | | | | | | | | | Fixes #10869 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Update license headersChristoph Wurst2019-12-051-1/+6
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Some php-cs fixesRoeland Jago Douma2019-11-221-13/+13
|/ | | | | | | | | | | * 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>
* Include the share in the Files_Sharing::loadAdditionalScripts eventDaniel Calviño Sánchez2019-10-171-1/+2
| | | | | | | | This provides a better context for apps using the event, for example to load one script or another depending on whether the share is a file or a folder. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix public upload by also load the semaphore methodMorris Jobke2019-05-071-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not allow JavaScript "eval" in the public share auth page with TalkDaniel Calviño Sánchez2019-04-101-2/+0
| | | | | | | | Talk no longer uses JavaScript "eval", so the Content Security Policy can now be configured to prevent its use in the public share authentication page when the password is protected by Talk. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix grid toggle button on public pageJohn Molakvoæ (skjnldsv)2019-02-211-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix writable public folder shareJulius Härtl2019-02-191-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add myself as @authorJonas Sulzer2019-01-311-0/+1
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* code stylingJonas Sulzer2019-01-311-2/+1
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* restructure codeJonas Sulzer2019-01-311-26/+23
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* only show "Add to your Nextcloud" on share link if federation is activatedJonas Sulzer2019-01-311-2/+14
| | | | Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* Rollback to default list viewJohn Molakvoæ (skjnldsv)2018-11-151-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* change "Download" to "Download all files" for shared foldersJonas Sulzer2018-11-101-6/+15
| | | | | | fixes #12378 Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
* Reduce function callsMorris Jobke2018-11-071-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adapts the code to the new master stateMichael Weimann2018-11-071-15/+23
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Inlines the share note for file dropsMichael Weimann2018-11-071-0/+1
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Inlines the share note for file dropsMichael Weimann2018-11-071-2/+1
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Hides the header actions for file dropsMichael Weimann2018-11-071-1/+0
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Add grid toggle for every files viewJohn Molakvoæ (skjnldsv)2018-11-061-0/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Honour "hide download" in the public share pageDaniel Calviño Sánchez2018-10-301-6/+8
| | | | | | | | | | | | | When the "hide download" property of a share is set the public share page will not show the download button nor the menu with the download, direct link and "Add to your Nextcloud" actions; the "downloadURL" hidden field will not be included either in the generated HTML. Despite that, note that the "downloadURL" parameter is still set and passed to the template, as this could be needed anyway to generate previews (for example, of audio files). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Expose hide download to public pageRoeland Jago Douma2018-10-301-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge branch 'master' of https://github.com/nextcloud/server into gridview-tableJohn Molakvoæ (skjnldsv)2018-10-231-2/+21
|\ | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Use lax CSP when the share is a talk shareJoas Schilling2018-10-221-2/+21
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Public fixes, request & default to gridJohn Molakvoæ (skjnldsv)2018-10-231-0/+1
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Move files_drop to compiled handlebarsRoeland Jago Douma2018-10-161-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move to 1 template file for filesRoeland Jago Douma2018-10-011-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Compile filesummary handlebarsRoeland Jago Douma2018-09-271-0/+2
| | | | | | | | | | Fixes #11030 For https://github.com/orgs/nextcloud/projects/18 This template is now compiled so this no longer has to happen in the browser. Another step towards a stricter CSP. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix mobile view and add public share note viewJohn Molakvoæ (skjnldsv)2018-08-241-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix multiSelectMenu for public shares #10536MartB2018-08-061-0/+1
| | | | Signed-off-by: Martin Böh (MartB) <mart.b@outlook.de>
* Add event to load additional scripts in the auth page for public sharesDaniel Calviño Sánchez2018-07-241-0/+29
| | | | | | | | | | | | | | | | | | | | | | Before the public share authentication page is rendered now an event to load additional scripts is dispatched. Thanks to this any app can load its own scripts that, when run on the browser, adjust as needed the page generated by the server. Note, however, that during the handling of the event apps are only able to add scripts or styles to be loaded; they can not render arbitrary content on the page, or change how the content is rendered by the original template; all those changes have to be done by the scripts at run-time. This implies that the scripts of the apps can use only those parameters, like the token of the share, added to the page when it is generated by the "publicshareauth" template. Due to this, and given that the event is being introduced to be used by Talk to inject the UI needed to request the password for a share, the token of the share is now provided in the generated page, just like done in the public share page. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* show note on public link pageBjoern Schiessle2018-07-211-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix ShareControllerTestRoeland Jago Douma2018-06-201-32/+7
| | | | | | | * Removed tests that are now handled by the middleware * Updated tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move public auth page overRoeland Jago Douma2018-06-201-17/+0
| | | | | | | Now this is in core so the basics (that 99% of the app will want to use) looks always the same. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move public preview endpoint overRoeland Jago Douma2018-06-201-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Quick hack to make the files sharing app work with this properlyRoeland Jago Douma2018-06-201-84/+57
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow updating the token on session regenerationRoeland Jago Douma2018-06-141-1/+1
| | | | | | | Sometimes when we force a session regeneration we want to update the current token for this session. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Regenerate session id after public share authRoeland Jago Douma2018-05-171-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move common menu templates to public APIJulius Härtl2018-04-051-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fixup! Sharing: redirect to download after authentification if requestedJohn Molakvoæ (skjnldsv)2018-03-011-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fixed testsJohn Molakvoæ (skjnldsv)2018-02-281-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fixup! Sharing: redirect to download after authentification if requestedJohn Molakvoæ (skjnldsv)2018-02-281-2/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Sharing: redirect to download after authentification if requestedJohn Molakvoæ (skjnldsv)2018-02-281-4/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix files_sharing testsJulius Härtl2018-02-271-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use PublicTemplateResponse for files_sharingJulius Härtl2018-02-271-1/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove unused import statementsMorris Jobke2018-02-141-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show open graph preview in WhatsAppRoeland Jago Douma2018-02-121-0/+11
| | | | | | | Whatsapp is picky about the size of the open graph images. So we do some special handling. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use ::class statement instead of stringMorris Jobke2018-01-291-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Simplify ternary operator statementsMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>