-
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
feat: Allow granting the mobile-upload-file
permission to guests
#34191
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: 01d0a9e 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 @@
## develop #34191 +/- ##
============================================
+ Coverage 59.18% 74.99% +15.81%
============================================
Files 2819 516 -2303
Lines 67718 22742 -44976
Branches 15081 5519 -9562
============================================
- Hits 40076 17056 -23020
+ Misses 24820 5023 -19797
+ Partials 2822 663 -2159
Flags with carried forward coverage won't be shown. Click here to find out more. |
Proposed changes (including videos or screenshots)
mobile-upload-file
permission to the guest role (but not make it the default behavior)Issue(s)
Steps to test or reproduce
Use the
authorization:addPermissionToRole
Meteor method to check that themobile-upload-file
permission can now be granted to the guest role. Example (cURL) request:This Meteor method should return an error (
Permission is restricted [error-action-not-allowed]
) in case an invalid permission is provided (e.g. a permission that can't be granted to the guest role -- any permission that isn't in this list:view-d-room
,view-joined-room
,view-p-room
,start-discussion
,mobile-upload-file
).Use the
authorization:removeRoleFromPermission
Meteor method to check that themobile-upload-file
permission can also be removed from the guest role. Example (cURL) request:Further comments
CORE-837