The previous implementation requires admin permission to rename branches which should be write permission. Fix #31993