return error if wrong shareType is given

This commit is contained in:
Bjoern Schiessle 2013-09-19 10:33:04 +02:00
parent 171b7ebffe
commit 199121134f
1 changed files with 2 additions and 0 deletions

View File

@ -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 {