allow to set a different permission during initial share operation

remotes/origin/stable6
Bjoern Schiessle 11 years ago
parent 14437ffd15
commit 7aed24fa6c
  1. 6
      apps/files_sharing/lib/api.php

@ -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
@ -265,4 +265,4 @@ class Api {
return $itemType;
}
}
}

Loading…
Cancel
Save