Fixes #5246: Remove group permissions on generated promises with chmod
Merge pull request #574 from VinceMacBuche/bug_5246/v2

Fixes #5246: Remove group permissions on generated promises with chmod