Add explicit delete permission to link shares
Link shares always allowed deletion, however internally the permissions were stored as 7 which lacked delete permissions. This created an inconsistency in the Webdav permissions. This fix makes sure we include delete permissions in the share permissions, which now become 15. In case a client is still passing 7 for legacy reasons, it gets converted automatically to 15.
Showing
- apps/files_sharing/lib/API/Share20OCS.php 17 additions, 4 deletionsapps/files_sharing/lib/API/Share20OCS.php
- apps/files_sharing/tests/API/Share20OCSTest.php 67 additions, 10 deletionsapps/files_sharing/tests/API/Share20OCSTest.php
- apps/files_sharing/tests/ApiTest.php 14 additions, 2 deletionsapps/files_sharing/tests/ApiTest.php
- build/integration/features/sharing-v1.feature 3 additions, 3 deletionsbuild/integration/features/sharing-v1.feature
- core/js/sharedialoglinkshareview.js 1 addition, 1 deletioncore/js/sharedialoglinkshareview.js
- lib/private/Share20/Manager.php 1 addition, 6 deletionslib/private/Share20/Manager.php
- tests/lib/Share20/ManagerTest.php 0 additions, 18 deletionstests/lib/Share20/ManagerTest.php
Loading
Please register or sign in to comment