-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
fix: Users without preview permission subscribing to public channel stream #34922
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 0dcf7e9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 37 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 @@
## develop #34922 +/- ##
===========================================
+ Coverage 59.18% 59.22% +0.03%
===========================================
Files 2819 2819
Lines 67719 67485 -234
Branches 15081 15013 -68
===========================================
- Hits 40077 39965 -112
+ Misses 24819 24711 -108
+ Partials 2823 2809 -14
Flags with carried forward coverage won't be shown. Click here to find out more. |
…public-room-subscription-preview
…ketChat/Rocket.Chat into fix/public-room-subscription-preview
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.
I think NotSubscribedState
either doesn't need to be a separate component (could be directly rendered in the NotSubscribedRoom
componenet) or at least it should be in the views/room folder. Even if we could use it somewhere else in the future, we can move it when we need.
A side note: This might seem like nit picking, but could you rename the components/error so that their names are in the same pattern of the other Errors/Room State components? It's not a big deal but it helps understand what each thing mean.
…ketChat/Rocket.Chat into fix/public-room-subscription-preview
…ketChat/Rocket.Chat into fix/public-room-subscription-preview
8fbfb13
to
9037159
Compare
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.
Is it possible to add some tests to ensure this?
Aligned internally, we'll skip the tests temporarily |
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.
According to the problem description, the server's stream allows users without permission to subscribe to the stream. I understand we are preventing at the client side, but I think we should also ensure the stream itself doesn't allow unauthorized users to subscribe to it. Will be address in another task
9037159
to
05434e5
Compare
05434e5
to
a681511
Compare
…ketChat/Rocket.Chat into fix/public-room-subscription-preview
a681511
to
0744c83
Compare
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
CORE-855