-
Notifications
You must be signed in to change notification settings - Fork 30k
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
src: clarify the parameter name in Permission::Apply
#47874
src: clarify the parameter name in Permission::Apply
#47874
Conversation
Review requested:
|
This fixes confusing parameter names. They are references to set allow-permission. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
77416b8
to
21642e7
Compare
Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
1ff3516
to
72cab67
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.
This PR does two changes:
- Correctly fix the parameter name
deny
->allow
- Use
is_all_allowed_
instead ofdeny_all
.
While I 100% agree with the first change, the second one seems odd to me. I feel that reading deny_all_ = true
by default way clear than is_all_allowed_ = false
… and worker" This reverts commit 72cab67. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com>
@RafaelGSS Thanks for the review. I reverted renaming |
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.
LGTM with green ci.
Landed in 39973c6 |
This fixes confusing parameter names. They are references to set allow-permission. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: #47874 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
This fixes confusing parameter names. They are references to set allow-permission. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: #47874 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
This fixes confusing parameter names. They are references to set allow-permission. Signed-off-by: Daeyeon Jeong <daeyeon.dev@gmail.com> PR-URL: nodejs#47874 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
The first parameter is to set allow-permission, but its name declaration is
deny
. This removes any confusion./cc @RafaelGSS
Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com