-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: create-c and create-p not being applied to Team Creation #36592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #36592 +/- ##
===========================================
+ Coverage 65.70% 65.77% +0.06%
===========================================
Files 3199 3200 +1
Lines 106892 106886 -6
Branches 20343 20362 +19
===========================================
+ Hits 70232 70299 +67
+ Misses 34015 33936 -79
- Partials 2645 2651 +6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
🦋 Changeset detectedLatest commit: 8545509 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
dougfabris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ea09d03 to
5b0090c
Compare
dougfabris
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.



Proposed changes (including videos or screenshots)
When the "Create Private/Public Channels" permission is turned off, the team creation UI still allows selecting a private team. However, attempting to create such a team results in an API error ("error-team-creation"). This is inconsistent with the channel creation UI, which disables the public/private toggle when the corresponding permission is off.
Since the Team has a main "channel", the user needs both create-team and create-c or create-p to be able to create a team
Issue(s)
SUP-747
Steps to test or reproduce
Disable the "Create Private Channels" permission for the user role.
Attempt to create a new team with the payload:
For public team → Succeeds
For private team → Fails with "error-team-creation"