forked from rc/aircox
		
	add default group to user at creation + custom perms
This commit is contained in:
		@ -6,6 +6,14 @@ from django.conf import settings
 | 
			
		||||
def ensure (key, default):
 | 
			
		||||
    globals()[key] = getattr(settings, key, default)
 | 
			
		||||
 | 
			
		||||
# name of the group assigned by default to all users that are created
 | 
			
		||||
ensure('AIRCOX_DEFAULT_USER_GROUP', 'Radio Hosts')
 | 
			
		||||
ensure('AIRCOX_DEFAULT_USER_GROUP_PERMS', (
 | 
			
		||||
    'change_program', 'change_diffusion',
 | 
			
		||||
    'change_sound',
 | 
			
		||||
    'add_track', 'change_track', 'delete_track',
 | 
			
		||||
    'add_tag', 'change_tag', 'delete_tag',
 | 
			
		||||
))
 | 
			
		||||
 | 
			
		||||
# Directory for the programs data
 | 
			
		||||
ensure('AIRCOX_PROGRAMS_DIR',
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user