-
Notifications
You must be signed in to change notification settings - Fork 11k
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
feat!: Add permissions to create rooms in teams #31117
Conversation
🦋 Changeset detectedLatest commit: 5e395a5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 35 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 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## release-7.0.0 #31117 +/- ##
================================================
Coverage ? 74.79%
================================================
Files ? 467
Lines ? 20641
Branches ? 5262
================================================
Hits ? 15439
Misses ? 4590
Partials ? 612
Flags with carried forward coverage won't be shown. Click here to find out 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.
One "problem" with this feature is that team owners will be able to create rooms inside teams, but there won't be any way for them to delete those rooms unless they have the global delete permission. Ideally anyone who can create a room should be able to also delete it afterwards.
But in this case we can't simply add a delete-team-channel
permission either, because team owners would then be able to delete any global room by simply adding it to their team first.
I don't know what the ideal solution is, but I believe it's just a matter of time until we get people requesting a delete-team-channel
permission after this one is merged.
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.
@pierre-lehnen-rc with the PR as it is right now, users who have the new permission to add channels/groups would only be able to delete the channels they own (since we check the delete-c
and delete-p
permissions in the deleted room scope).
I thought of two ways these two new delete-team-channel
/ delete-team-group
permissions could behave if we introduce them:
- They could "override" the global permissions, so that anyone that has this permission in a team would be able to delete ANY room in it (even the ones they don't own);
- They could complement the permission to delete a room. So a user would only be able to delete a room that is part of a team if they own it (
delete-c
/delete-p
permissions, which are currently checked within the deleted room's scope) and are also allowed to delete it in the team.
I'll check what's the behavior we'd like to have in the product. Maybe we should also make this clear somewhere if we decide to implement it.
apps/meteor/client/views/teams/contextualBar/channels/RoomActions.js
Outdated
Show resolved
Hide resolved
This PR currently has a merge conflict. Please resolve this and then re-add the |
31902b7
to
5e395a5
Compare
Proposed changes (including videos or screenshots)
create-team-channel
andcreate-team-group
permissions to provide more control for the creation of rooms inside teams (the new permissions are checked within the team's main room scope);Issue(s)
Steps to test or reproduce
Further comments
This is a BREAKING CHANGE
SUP-356