Details
-
Bug
-
Status: Closed
-
Major - P3
-
Resolution: Fixed
-
None
-
None
Description
The SaveProjectSettingsForSection and SaveRepoSettingsForSection resolvers push admin updates to the database even when the call to UpdateAdminRoles returns an error.
Example: the evergreen project in the local db does not have a project_settings permission defined in the roles collection. As such, any attempt to set an admin should fail. The resolver does correctly return an error, but the changes made to the "admins" array are still pushed to the evergreen document in the project_ref collection.