aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #12324 from ↵Morris Jobke2018-11-071-0/+4
|\ | | | | | | | | nextcloud/add-password-response-parameter-for-returning-the-password-of-link-shares Add "password" parameter to the response data of link shares
| * Add "password" parameter to the response data of link sharesDaniel Calviño Sánchez2018-11-061-0/+4
| | | | | | | | | | | | | | | | | | | | Due to legacy reasons the password of link shares was returned in the "share_with" and "share_with_displayname" parameters of the response data. Now a proper "password" parameter is returned too; the old "share_with" and "share_with_displayname" parameters are kept, although deprecated, and they will be removed in a future version of Nextcloud. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | 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>
* Merge pull request #12185 from nextcloud/cleanup/dicontainerMorris Jobke2018-11-051-1/+2
|\ | | | | Cleanup the DIContainer
| * Fix files_sharingRoeland Jago Douma2018-11-021-1/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #12105 from nextcloud/using-resharing-right-to-display-sharesRoeland Jago Douma2018-11-041-4/+80
|\ \ | |/ |/| Shares are displayed to users with resharing rights
| * user can have his resharing rights revoked, yet seeing created sharesMaxence Lange2018-11-021-6/+13
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * check parents resharing rightsMaxence Lange2018-11-021-6/+14
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * limit to circles moderatorMaxence Lange2018-11-021-1/+2
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * display shares to circles moderatorMaxence Lange2018-11-021-0/+22
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * shares are displayed to users with resharing rightsMaxence Lange2018-11-021-0/+38
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | Add sending the password by Talk for a link share to ShareAPIControllerDaniel Calviño Sánchez2018-11-021-0/+20
|/ | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* allow to update lables for public link sharesBjoern Schiessle2018-11-011-1/+15
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow to add labels to sharesBjoern Schiessle2018-11-011-5/+13
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow to create multiple link shares via share apiBjoern Schiessle2018-10-311-9/+0
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* 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>
* Propegate hide download state in share providerRoeland Jago Douma2018-10-301-2/+12
| | | | 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>
* Merge pull request #11862 from nextcloud/bugfix/ensure_cache_it_initblizzz2018-10-171-1/+3
|\ | | | | Double check for failed cache with a shared storage
| * Double check for failed cache with a shared storageRoeland Jago Douma2018-10-161-1/+3
| | | | | | | | | | | | | | | | | | | | | | When obtaining the SourceRootInfo we can call init. If this fails the cache is set to a failed cache and the storage to a failed storage. However we did not check for this. Which means that if the storage was invalid it would fail later on. Now we will properly error out. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #11870 from nextcloud/fix/noid/proper-column-name-escapingMorris Jobke2018-10-161-1/+1
|\ \ | | | | | | Properly quote column name in "createFunction" call
| * | Properly escape column name in "createFunction" callMorris Jobke2018-10-161-1/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / Move files_drop to compiled handlebarsRoeland Jago Douma2018-10-161-0/+1
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-2/+2
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow userId to be nullRoeland Jago Douma2018-10-041-1/+1
| | | | | | | | | | | | Fixes #10852 A quick hack. Still ensures some type safety however now also accepts null. Else we'd need to add a whole new layer of middlewares. This can only happen when a guest user wants to access a controller that requries the user_id. 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>
* do not explode when getting permissions from a FailedStorageArthur Schiwon2018-09-261-1/+9
| | | | | | | for instance if a user of an external user backend is not available currently, the whole Files UI would be frozen. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Properly check share permissionsRoeland Jago Douma2018-09-061-2/+8
| | | | | | | | isCreatable only works on folders isUpdatable if the file is not there but it is a part file also has to be checked on the folder Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix shared cacheRoeland Jago Douma2018-09-061-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Check the permission of the underlying storageRoeland Jago Douma2018-09-061-1/+2
| | | | | | | Else shares might expose more permissions than the storage actually providers. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #10838 from nextcloud/header-fixes-and-public-noteMorris Jobke2018-08-241-0/+1
|\ | | | | Header fixes and public note
| * 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>
* | Add rooms in the default candidate types to look for when sharingDaniel Calviño Sánchez2018-08-241-0/+6
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | cache parent exists status during share setupRobin Appelman2018-08-163-10/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | only determine is sharing is disabled for a user onceRobin Appelman2018-08-162-2/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | don't check if target dir exists when using the default share target directoryRobin Appelman2018-08-162-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | re-use view instances for shared storagesRobin Appelman2018-08-162-6/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | more efficient way to detect added and removed mountsRobin Appelman2018-08-161-4/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | more efficient unique share target generationRobin Appelman2018-08-162-13/+10
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #10255 from nextcloud/add-support-for-room-sharesBjörn Schießle2018-08-094-9/+120
|\ | | | | Add support for room shares
| * Suppress Phan warnings about calling undeclared class methodsDaniel Calviño Sánchez2018-08-082-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The DeletedShareAPIController and ShareAPIController helpers for room shares are defined in Talk, so the classes do not exist when Talk is not installed. Due to this when the object returned by "getRoomShareHelper" is used Phan complains that the class is not declared. This is not a problem, though, because when the class is not available "getRoomShareHelper" throws an exception, which is then caught where that method was called. Therefore now those warnings from Phan are suppressed (it would be better to use "@phan-suppress-next-line" instead, but it is not yet available in our Phan version). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>