mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-04 01:32:11 +02:00
Organizers can add other organizers
This commit is contained in:
@ -97,7 +97,7 @@ class AddOrganizerView(VolunteerMixin, CreateView):
|
||||
del context["admin_registration_form"].fields["email_confirmed"]
|
||||
|
||||
if not self.request.user.registration.is_admin:
|
||||
del context["form"].fields["type"]
|
||||
context["form"].fields["type"].widget.attrs['readonly'] = True
|
||||
del context["admin_registration_form"]
|
||||
|
||||
return context
|
||||
|
Reference in New Issue
Block a user