-
Notifications
You must be signed in to change notification settings - Fork 378
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
Add a confidential field to policies #4643
Conversation
yanndago
commented
Dec 17, 2024
- Add a new confidential field to features
- This new field makes it impossible to:
- access the feature via direct url
- find the feature using search
- See the feature in the release notes
- The only users who can see a confidential feature are admins, owners of a google.com and chromium.org account, feature owners, editors and creators.
c80f832
to
be2ff15
Compare
type: 'checkbox', | ||
label: 'Confidential', | ||
initial: false, | ||
help_text: html `This is a confidential feature that should not be publicly |
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.
It would be more clear if this explained who could view the feature. E.g., "@google.com accounts, @chromium.org accounts, the feature owners, and editors."
framework/permissions.py
Outdated
return not feature.confidential or can_view_confidential_feature(user, feature) | ||
|
||
def can_view_confidential_feature(user, feature): | ||
''' Check if the user is an owner, editor, spec mentor, or creator |
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.
Nit: all our other docstrings use three double-quotes.
aa0f186
to
24b0db3
Compare
24b0db3
to
9aa4b5c
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.
LGTM, but there is still the nit about a docstring using single quotes.