add perms to email
This commit is contained in:
parent
6b619c8121
commit
a4b39215ea
|
@ -0,0 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
var perms = require('./permissions.json');
|
||||
var emails = {};
|
||||
perms.forEach(function (p) {
|
||||
p.nodes.forEach(function (n) {
|
||||
if ('email' === n.type) {
|
||||
emails[n.name] = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
console.log(Object.keys(emails).join(', '));
|
Loading…
Reference in New Issue