-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[AC-1747] deprecate access control indicator #6796
[AC-1747] deprecate access control indicator #6796
Conversation
No New Or Fixed Issues Found |
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.
These changes generally look good to me, thanks @willmartian!
OrganizationUserView
also has an AccessAll
property which doesn't look like it's dealt with here. It's consumed in PeopleComponent
: https://github.com/bitwarden/clients/blob/ac/AC-1747/deprecate-access-control-indicator/apps/web/src/app/admin-console/organizations/members/people.component.ts#L244-L254
Do you think there's any benefit to overriding the value in the static fromResponse
methods, so that you cannot actually instantiate it without having to deal with the feature flag logic? I don't feel strongly about it because it looks like you've caught it in all places anyway. But it would be extra protection against someone instantiating the object without properly handling this.
apps/web/src/app/admin-console/organizations/core/views/organization-user-admin-view.ts
Show resolved
Hide resolved
Good catch, fixed in 86bcc6a and 582a524.
Agreed, the extra protection would be nice, but:
So I think we would need to be equally careful whether or not a parameter is added to the |
Type of change
Objective
This PR hides the ability to grant a user or group access to all collections, based on
FeatureFlag.FlexibleCollections
.Code changes
GroupView
, setaccessAll
tofalse
if the feature flag is enabled.OrganizationUserAdminView
, setaccessAll
tofalse
if the feature flag is enabled.accessAll
field.accessAll
field.accessAll
field.accessAll
field.Screenshots
FeatureFlag.FlexibleCollections === true
Screen.Recording.2023-11-03.at.4.54.01.PM.mov
FeatureFlag.FlexibleCollections === false
Screen.Recording.2023-11-03.at.4.52.45.PM.mov
Before you submit