Skip to content

Commit

Permalink
contingentworkernda = nda
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Sep 23, 2020
1 parent 61e83f2 commit fdbd7ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/assets/js/scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class Scope {
this.isLoggedIn && (username === '' || username.startsWith('r--'));
this.isReady = Boolean(username);
this.isStaff = isStaff;
this.isNdaed = 'nda' in (mozilliansorgGroups || {});
this.isNdaed =
'nda' in (mozilliansorgGroups || {}) ||
'contingentworkernda' in (mozilliansorgGroups || {});
this.isLdap = Boolean(ldapGroups);
this.isGroupCreator =
'group_creators' in (mozilliansorgGroups || {}) ||
Expand Down
6 changes: 5 additions & 1 deletion src/components/profile/AccessLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ export default {
if (this.staffInformation.staff.value) {
return 'staff';
}
if ('nda' in (this.accessInformation.mozilliansorg.values || {})) {
if (
'nda' in (this.accessInformation.mozilliansorg.values || {}) ||
'contingentworkernda' in
(this.accessInformation.mozilliansorg.values || {})
) {
return 'confidential';
}
return 'public';
Expand Down
4 changes: 3 additions & 1 deletion src/store/scope.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export default {
} = user || {};
const options = {
isStaff,
isNdaed: 'nda' in (mozilliansorgGroups || {}),
isNdaed:
'nda' in (mozilliansorgGroups || {}) ||
'contingentworkernda' in (mozilliansorgGroups || {}),
isLdap: Boolean(ldapGroups),
};
commit('set', options);
Expand Down

0 comments on commit fdbd7ec

Please sign in to comment.