Public upload share permission handling
If you set the permissions on a public share the SHARE permission makes no sense. So instead of throwing a warning. Just filter out the share permission. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
fff192f78f
commit
82791b7b06
|
@ -700,6 +700,7 @@ class ShareAPIController extends OCSController {
|
|||
|
||||
if ($permissions !== null) {
|
||||
$newPermissions = (int)$permissions;
|
||||
$newPermissions = $newPermissions & ~\OCP\Constants::PERMISSION_SHARE;
|
||||
}
|
||||
|
||||
if ($newPermissions !== null &&
|
||||
|
|
Loading…
Reference in New Issue