Merge pull request #7091 from nextcloud/backport/6949/stable-3.14

[stable-3.14] Narrow down ReadWrite folder permission to owner
This commit is contained in:
Matthieu Gallien 2024-09-09 16:12:16 +02:00 committed by GitHub
commit 3a1ad772ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {