diff options
author | Christian Kamm <mail@ckamm.de> | 2019-07-08 13:55:21 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2019-07-09 16:19:05 +0300 |
commit | 5fe7a7cd656fca61cd42642ad2ca8ba7ba86a2ae (patch) | |
tree | 26f1b5efabcff83be0338233957ae50cc7250d02 /src/gui/shareusergroupwidget.cpp | |
parent | 98ba64e60c9c2cb23203938ce862d4c6ed408a03 (diff) |
Sharing: Create shares with appropriate permissions #7275
If user A shares something with user B and allows resharing but removes
some other permission then user B should be able to share the item or
any of its contents with user C and the new share permissions should
automatically be <= the permissions of the original share.
Currently this works correctly when resharing the original item but
fails for any subitem, preventing the reshare entirely.
With this patch the reshare will always be created with appropriately
limited permissions.
Diffstat (limited to 'src/gui/shareusergroupwidget.cpp')
-rw-r--r-- | src/gui/shareusergroupwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/shareusergroupwidget.cpp b/src/gui/shareusergroupwidget.cpp index 69336f013..ba695d4b4 100644 --- a/src/gui/shareusergroupwidget.cpp +++ b/src/gui/shareusergroupwidget.cpp @@ -298,7 +298,7 @@ void ShareUserGroupWidget::slotCompleterActivated(const QModelIndex &index) sharee->shareWith(), SharePermission(permissions)); } else { _manager->createShare(_sharePath, Share::ShareType(sharee->type()), - sharee->shareWith(), SharePermissionDefault); + sharee->shareWith(), _maxSharingPermissions); } _ui->shareeLineEdit->setEnabled(false); |