Merge 140dd424ae
into 7668d3afcd
This commit is contained in:
commit
1ecfdba589
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -27,6 +27,7 @@
|
|||
|
||||
namespace OCA\Files_Sharing;
|
||||
|
||||
use OCP\Constants;
|
||||
use OCP\Share\IShare;
|
||||
|
||||
class Updater {
|
||||
|
@ -82,7 +83,12 @@ class Updater {
|
|||
//Ownership is moved over
|
||||
foreach ($shares as $share) {
|
||||
/** @var IShare $share */
|
||||
if (!($dstMount->getShare()->getPermissions() & Constants::PERMISSION_SHARE)) {
|
||||
$shareManager->deleteShare($share);
|
||||
continue;
|
||||
}
|
||||
$share->setShareOwner($newOwner);
|
||||
$share->setPermissions($share->getPermissions() & $dstMount->getShare()->getPermissions());
|
||||
$shareManager->updateShare($share);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
:open.sync="open"
|
||||
@close="onMenuClose">
|
||||
<template v-if="share">
|
||||
<template v-if="share.canEdit">
|
||||
<template v-if="share.canEdit && canReshare">
|
||||
<!-- Custom Label -->
|
||||
<ActionInput
|
||||
ref="label"
|
||||
|
|
Loading…
Reference in New Issue