]> source.dussan.org Git - nextcloud-server.git/commit
Correctly check share permissions when updating a re-sub-share
authorJoas Schilling <coding@schilljs.com>
Fri, 21 Jun 2019 07:22:06 +0000 (09:22 +0200)
committerBackportbot <backportbot-noreply@rullzer.com>
Thu, 27 Jun 2019 14:30:53 +0000 (14:30 +0000)
commit8f972785f7a7be350bc43e4428504af3550ff357
treeea0f68d9f9eafab1e188df3a1eb4dd6b41598c91
parent66dc4c9c725000d3890f7cd0b65973fbe31fd312
Correctly check share permissions when updating a re-sub-share

Before this change the node you shared was checked for permissions.
This works when you reshare the folder that was shared with you.
However when you reshared a subfolder (e.g. as public link),
you could afterwards update the permissions and grant
create+update permissions although the share you receive was read-only.

Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/files_sharing/lib/Controller/ShareAPIController.php