return error if wrong shareType is given

remotes/origin/stable6
Bjoern Schiessle 12 years ago
parent 171b7ebffe
commit 199121134f
  1. 2
      apps/files_sharing/lib/api.php

@ -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…
Cancel
Save