return error if wrong shareType is given
This commit is contained in:
parent
171b7ebffe
commit
199121134f
|
@ -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 New Issue