allow to set a different permission during initial share operation

This commit is contained in:
Bjoern Schiessle 2013-09-16 17:28:17 +02:00
parent 14437ffd15
commit 7aed24fa6c
1 changed files with 3 additions and 3 deletions

View File

@ -69,10 +69,10 @@ class Api {
switch($shareType) {
case \OCP\Share::SHARE_TYPE_USER:
$permission = 31;
$permission = isset($_POST['permission']) ? (int)$_POST['permission'] : 31;
break;
case \OCP\Share::SHARE_TYPE_GROUP:
$permission = 31;
$permission = isset($_POST['permission']) ? (int)$_POST['permission'] : 31;
break;
case \OCP\Share::SHARE_TYPE_LINK:
//allow password protection