mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
return error if wrong shareType is given
This commit is contained in:
parent
171b7ebffe
commit
199121134f
1 changed files with 2 additions and 0 deletions
|
|
@ -133,6 +133,8 @@ class Api {
|
|||
// read (1) if public upload is disabled
|
||||
$permissions = $publicUpload === 'yes' ? 7 : 1;
|
||||
break;
|
||||
default:
|
||||
return new \OC_OCS_Result(null, 404, "unknown share type");
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in a new issue