-
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
chore: rename API method unauthorized method to forbidden #32083
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #32083 +/- ##
============================================
+ Coverage 59.28% 75.27% +15.99%
============================================
Files 2820 516 -2304
Lines 67932 22540 -45392
Branches 15102 5485 -9617
============================================
- Hits 40275 16968 -23307
+ Misses 24831 4911 -19920
+ Partials 2826 661 -2165
Flags with carried forward coverage won't be shown. Click here to find out more. |
bf64161
to
325779e
Compare
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
325779e
to
c1bb41e
Compare
|
494c94c
to
c5d06cd
Compare
c5d06cd
to
3c4225d
Compare
if (shouldVerifyPermissions) { | ||
if (!this.userId) { | ||
if (applyBreakingChanges) { | ||
throw new Meteor.Error('error-unauthorized', 'You must be logged in to do this'); |
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.
Shouldn't it be error-forbidden
here?
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments