mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-31 23:54:30 +01:00 
			
		
		
		
	Update file views.py
This commit is contained in:
		| @@ -83,7 +83,7 @@ class UserUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, UpdateView): | |||||||
|         # Delete the fields for which the user does not have the permission to modify |         # Delete the fields for which the user does not have the permission to modify | ||||||
|         for field_name in fields_to_check: |         for field_name in fields_to_check: | ||||||
|             if not PermissionBackend.check_perm(self.request, f"member.change_profile_{field_name}", context['user_object'].profile): |             if not PermissionBackend.check_perm(self.request, f"member.change_profile_{field_name}", context['user_object'].profile): | ||||||
|                 profile_form.fields[field_name].widget.attrs['disabled'] = True |                 profile_form.fields[field_name].widget.attrs['readonly'] = True | ||||||
|  |  | ||||||
|         context['profile_form'] = profile_form |         context['profile_form'] = profile_form | ||||||
|          |          | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user