add perms to email
This commit is contained in:
		
							parent
							
								
									6b619c8121
								
							
						
					
					
						commit
						a4b39215ea
					
				
							
								
								
									
										12
									
								
								lib/extensions/perms-to-email.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								lib/extensions/perms-to-email.js
									
									
									
									
									
										Normal file
									
								
							| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user