Skip to content

Commit 0de7cc4

Browse files
author
rtucker-mozilla
authored
Merge pull request #662 from rtucker-mozilla/add_ghe_group_curators
Adding ghe_group_curators to list of NDA'd groups
2 parents 75d63c7 + 13abf58 commit 0de7cc4

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/assets/js/scope.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Scope {
2828
this.isStaff = isStaff;
2929
this.isNdaed =
3030
'nda' in (mozilliansorgGroups || {}) ||
31+
'ghe_group_curators' in (mozilliansorgGroups || {}) ||
3132
'contingentworkernda' in (mozilliansorgGroups || {});
3233
this.isLdap = Boolean(ldapGroups);
3334
this.isGroupCreator =

src/components/profile/AccessLabel.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export default {
7373
}
7474
if (
7575
'nda' in (this.accessInformation.mozilliansorg.values || {}) ||
76+
'ghe_group_curators' in (this.accessInformation.mozilliansorg.values || {}) ||
7677
'contingentworkernda' in
7778
(this.accessInformation.mozilliansorg.values || {})
7879
) {

src/store/scope.store.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,16 @@ export default {
1414
ldap: { values: ldapGroups = {} } = {},
1515
} = {},
1616
} = user || {};
17+
/*
18+
The other places these groups are handled.
19+
https://github.com/mozilla-iam/dino-park-packs/pull/20
20+
https://github.com/mozilla-iam/dino-park-gate/pull/3
21+
*/
1722
const options = {
1823
isStaff,
1924
isNdaed:
2025
'nda' in (mozilliansorgGroups || {}) ||
26+
'ghe_group_curators' in (mozilliansorgGroups || {}) ||
2127
'contingentworkernda' in (mozilliansorgGroups || {}),
2228
isLdap: Boolean(ldapGroups),
2329
};

0 commit comments

Comments
 (0)