]> source.dussan.org Git - nextcloud-server.git/commit
Fixes not allowed increasing of link share permissions
authorRoeland Jago Douma <roeland@famdouma.nl>
Sun, 13 Nov 2016 19:29:34 +0000 (20:29 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 13 Nov 2016 19:29:34 +0000 (20:29 +0100)
commit965981486f6387887743dcfea9a5486de2c6604f
tree9c898fe1b29d5b6692cca08bd2e47160f21eba31
parent150b86a7db123eb712676a22219b5cf61437c781
Fixes not allowed increasing of link share permissions

Fixes the following:

1. user0 shares folder with user1 (RO but with sharing permissions)
2. user1 shares by link
3. user1 send 'publicUpload=true' OCS request to the link share

before this increased the permissions of the link share. Which should
not happen.

now: API reponds with an error that the permissions can't be increased.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files_sharing/lib/Controller/ShareAPIController.php
apps/files_sharing/tests/Controller/ShareAPIControllerTest.php