mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Merge pull request #6949 from suiso67/fix/excessive-folder-permission
Narrow down ReadWrite folder permission to owner
This commit is contained in:
commit
9fc15d4401
1 changed files with 1 additions and 1 deletions
|
@ -456,7 +456,7 @@ bool FileSystem::setFolderPermissions(const QString &path,
|
|||
case OCC::FileSystem::FolderPermissions::ReadOnly:
|
||||
break;
|
||||
case OCC::FileSystem::FolderPermissions::ReadWrite:
|
||||
std::filesystem::permissions(stdStrPath, writePerms, std::filesystem::perm_options::add);
|
||||
std::filesystem::permissions(stdStrPath, std::filesystem::perms::owner_write, std::filesystem::perm_options::add);
|
||||
break;
|
||||
}
|
||||
} catch (const std::filesystem::filesystem_error &e) {
|
||||
|
|
Loading…
Reference in a new issue