nextcloud/apps
Daniel Calviño Sánchez 6cb2cb33ac Fix getting the information of group share as a sharee
When the receiver of a group share modifies it (for example, by moving
it to a different folder) the original share is not modified, but a
"ghost" share that keeps track of the changes made by that specific user
is used instead.

By default, the method "getShareById" in the share provider returns the
share from the point of view of the sharer, but it can be used too to
get the share from the point of view of a sharee by providing the
"recipient" parameter (and if the sharee is not found then the share is
returned from the point of view of the sharer).

The "ShareAPIController" always formats the share from the point of view
of the current user, but when getting the information of a specific
share the "recipient" parameter was not given, so it was always returned
from the point of view of the sharer, even if the current user was a
sharee. Now the "recipient" parameter is set to the current user, and
thus the information of the share is returned from the point of view of
the current user, be it the sharer or a sharee.

Note that this special behaviour of "getShareById" happens only with
group shares; with other types of shares the share is the same for the
sharer and the sharee, and thus the parameter is ignored; it was added
for them too just for consistency.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2018-06-29 08:20:19 +02:00
..
accessibility Bump webpack from 4.12.1 to 4.12.2 in /apps/accessibility 2018-06-27 09:17:57 +00:00
admin_audit log to $datadir/audit.log by default and add rotation 2018-04-26 12:10:53 +02:00
comments [tx-robot] updated from transifex 2018-06-27 00:11:52 +00:00
dav Merge pull request #9773 from nextcloud/feature/noid/resource_booking 2018-06-29 06:51:49 +02:00
encryption [tx-robot] updated from transifex 2018-06-28 00:12:20 +00:00
federatedfilesharing [tx-robot] updated from transifex 2018-06-27 00:11:52 +00:00
federation [tx-robot] updated from transifex 2018-06-27 00:11:52 +00:00
files Merge pull request #10009 from nextcloud/techdebt/noid/replace-headers-with-http_response_code-calls 2018-06-27 12:14:52 +02:00
files_external [tx-robot] updated from transifex 2018-06-28 00:12:20 +00:00
files_sharing Fix getting the information of group share as a sharee 2018-06-29 08:20:19 +02:00
files_trashbin [tx-robot] updated from transifex 2018-06-29 00:12:08 +00:00
files_versions Merge pull request #10009 from nextcloud/techdebt/noid/replace-headers-with-http_response_code-calls 2018-06-27 12:14:52 +02:00
lookup_server_connector Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
oauth2 [tx-robot] updated from transifex 2018-06-28 00:12:20 +00:00
provisioning_api fix tests / mistakes made during rebase 2018-06-27 21:52:04 +02:00
sharebymail [tx-robot] updated from transifex 2018-06-24 00:12:06 +00:00
systemtags [tx-robot] updated from transifex 2018-06-28 00:12:20 +00:00
testing Fix info.xml files of shipped apps 2018-02-16 10:24:03 +01:00
theming [tx-robot] updated from transifex 2018-06-28 00:12:20 +00:00
twofactor_backupcodes [tx-robot] updated from transifex 2018-06-23 00:12:41 +00:00
updatenotification [tx-robot] updated from transifex 2018-06-29 00:12:08 +00:00
user_ldap Merge pull request #10034 from nextcloud/fix/noid/ldap-silence-quota-logmsgs 2018-06-28 23:06:23 +02:00
workflowengine [tx-robot] updated from transifex 2018-06-21 00:12:47 +00:00