mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Don't reset share attributes when not specified
When not specified in the OCS call, don't reset the share attributes. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
dbbc426f75
commit
54a0d8fe64
1 changed files with 6 additions and 2 deletions
|
|
@ -681,7 +681,9 @@ class ShareAPIController extends OCSController {
|
|||
$share->setNote($note);
|
||||
}
|
||||
|
||||
$share = $this->setShareAttributes($share, $attributes);
|
||||
if ($attributes !== null) {
|
||||
$share = $this->setShareAttributes($share, $attributes);
|
||||
}
|
||||
|
||||
try {
|
||||
$share = $this->shareManager->createShare($share);
|
||||
|
|
@ -1228,7 +1230,9 @@ class ShareAPIController extends OCSController {
|
|||
}
|
||||
}
|
||||
|
||||
$share = $this->setShareAttributes($share, $attributes);
|
||||
if ($attributes !== null) {
|
||||
$share = $this->setShareAttributes($share, $attributes);
|
||||
}
|
||||
|
||||
try {
|
||||
$share = $this->shareManager->updateShare($share);
|
||||
|
|
|
|||
Loading…
Reference in a new issue