In JetBrains TeamCity prior to 2021.1.2, permission checks in the Create Patch functionality are insufficient.
jetbrains teamcity