]> 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)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 28 Jun 2019 07:48:59 +0000 (09:48 +0200)
commit38fe009444885aad8fe24fddc670ab1300cc4607
tree603441138a48a6a2cee6ddffc996487e1222ecbd
parentfd64f47eee6c9a85198ac5dc2d117271fed23535
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