mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 10:22:11 +01:00 
			
		
		
		
	Admins are superuser
This commit is contained in:
		@@ -136,6 +136,10 @@ class AddOrganizerView(VolunteerMixin, CreateView):
 | 
			
		||||
                                                                              domain=site.domain))
 | 
			
		||||
        registration.user.email_user(subject, message, html_message=html)
 | 
			
		||||
 | 
			
		||||
        if registration.is_admin:
 | 
			
		||||
            registration.user.is_superuser = True
 | 
			
		||||
            registration.user.save()
 | 
			
		||||
 | 
			
		||||
        return ret
 | 
			
		||||
 | 
			
		||||
    def get_success_url(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user