mirror of
				https://git.coolaj86.com/coolaj86/telebit-relay.js.git
				synced 2025-11-04 10:22:46 +00:00 
			
		
		
		
	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