mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 11:48:56 +03:00
remote permissions of a view-only folder: no new file or folder
change the way we evaluate a folder permissions to be read-only when no new file or new folders can be created if those permissions are lacking, client will make the local folder read-only if those permissions are granted, client will make local folder read-write Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
d705cad6b9
commit
2d0529c423
1 changed files with 0 additions and 2 deletions
|
@ -229,8 +229,6 @@ void PropagateLocalMkdir::startLocalMkdir()
|
|||
#if !defined(Q_OS_MACOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15
|
||||
if (!_item->_remotePerm.isNull() &&
|
||||
!_item->_remotePerm.hasPermission(RemotePermissions::CanAddFile) &&
|
||||
!_item->_remotePerm.hasPermission(RemotePermissions::CanRename) &&
|
||||
!_item->_remotePerm.hasPermission(RemotePermissions::CanMove) &&
|
||||
!_item->_remotePerm.hasPermission(RemotePermissions::CanAddSubDirectories)) {
|
||||
try {
|
||||
FileSystem::setFolderPermissions(newDirStr, FileSystem::FolderPermissions::ReadOnly);
|
||||
|
|
Loading…
Reference in a new issue