team.go
4.52 KB
-
API: Minor fix for team creation endpoint when using API key (#18252) · 7520166f
* Fix CreateTeam api endpoint No team member should be created for requests authenticated by API tokens. * Update middleware test Assert that `isAnonymous` is set for `SignedInUser` authenticated via API key. * Add test for team creation Assert that no team member is created if the signed in user is anomymous. * Revert "Fix CreateTeam api endpoint" This reverts commit 9fcc4e67f589008d7c44097f5cf08438c09c3c05. * Revert "Update middleware test" This reverts commit 75f767e58d212e21a351efea14bed79bbf881d2e. * Fix CreateTeam api endpoint No team member should be created for requests authenticated by API tokens. * Update team test * Change error to warning and update tests
Sofia Papagiannaki committed