Skip to content

Commit fdbd7ec

Browse files
committed
contingentworkernda = nda
1 parent 61e83f2 commit fdbd7ec

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/assets/js/scope.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class Scope {
2626
this.isLoggedIn && (username === '' || username.startsWith('r--'));
2727
this.isReady = Boolean(username);
2828
this.isStaff = isStaff;
29-
this.isNdaed = 'nda' in (mozilliansorgGroups || {});
29+
this.isNdaed =
30+
'nda' in (mozilliansorgGroups || {}) ||
31+
'contingentworkernda' in (mozilliansorgGroups || {});
3032
this.isLdap = Boolean(ldapGroups);
3133
this.isGroupCreator =
3234
'group_creators' in (mozilliansorgGroups || {}) ||

src/components/profile/AccessLabel.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ export default {
7171
if (this.staffInformation.staff.value) {
7272
return 'staff';
7373
}
74-
if ('nda' in (this.accessInformation.mozilliansorg.values || {})) {
74+
if (
75+
'nda' in (this.accessInformation.mozilliansorg.values || {}) ||
76+
'contingentworkernda' in
77+
(this.accessInformation.mozilliansorg.values || {})
78+
) {
7579
return 'confidential';
7680
}
7781
return 'public';

src/store/scope.store.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export default {
1616
} = user || {};
1717
const options = {
1818
isStaff,
19-
isNdaed: 'nda' in (mozilliansorgGroups || {}),
19+
isNdaed:
20+
'nda' in (mozilliansorgGroups || {}) ||
21+
'contingentworkernda' in (mozilliansorgGroups || {}),
2022
isLdap: Boolean(ldapGroups),
2123
};
2224
commit('set', options);

0 commit comments

Comments
 (0)