allow to set a different permission during initial share operation
This commit is contained in:
parent
14437ffd15
commit
7aed24fa6c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue