mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-31 15:50:03 +01:00 
			
		
		
		
	Not-yet-registered WEI members can see their registrations
This commit is contained in:
		| @@ -2094,8 +2094,6 @@ | ||||
| 				39, | ||||
| 				40, | ||||
| 				70, | ||||
| 				108, | ||||
| 				109, | ||||
| 				14, | ||||
| 				15, | ||||
| 				16, | ||||
| @@ -2103,7 +2101,15 @@ | ||||
| 				18, | ||||
| 				78, | ||||
| 				79, | ||||
| 				83 | ||||
| 				83, | ||||
| 				90, | ||||
| 				93, | ||||
| 				95, | ||||
| 				97, | ||||
| 				99, | ||||
| 				101, | ||||
| 				108, | ||||
| 				109 | ||||
| 			] | ||||
| 		} | ||||
| 	}, | ||||
| @@ -2493,18 +2499,18 @@ | ||||
| 			"for_club": null, | ||||
| 			"name": "Adhérent WEI", | ||||
| 			"permissions": [ | ||||
| 				97, | ||||
| 				99, | ||||
| 				101, | ||||
| 				108, | ||||
| 				77, | ||||
| 				109, | ||||
| 				114, | ||||
| 				84, | ||||
| 				87, | ||||
| 				90, | ||||
| 				93, | ||||
| 				95 | ||||
| 				95, | ||||
| 				97, | ||||
| 				99, | ||||
| 				101, | ||||
| 				108, | ||||
| 				109, | ||||
| 				114 | ||||
| 			] | ||||
| 		} | ||||
| 	}, | ||||
|   | ||||
 Submodule apps/scripts deleted from fc29147c87
									
								
							| @@ -132,6 +132,7 @@ class WEIDetailView(ProtectQuerysetMixin, LoginRequiredMixin, DetailView): | ||||
|         else: | ||||
|             # Check if the user has the right to create a registration of a random first year member. | ||||
|             empty_fy_registration = WEIRegistration( | ||||
|                 wei=club, | ||||
|                 user=random_user, | ||||
|                 first_year=True, | ||||
|                 birth_date="1970-01-01", | ||||
| @@ -144,6 +145,7 @@ class WEIDetailView(ProtectQuerysetMixin, LoginRequiredMixin, DetailView): | ||||
|  | ||||
|             # Check if the user has the right to create a registration of a random old member. | ||||
|             empty_old_registration = WEIRegistration( | ||||
|                 wei=club, | ||||
|                 user=User.objects.filter(~Q(wei__wei__in=[club])).first(), | ||||
|                 first_year=False, | ||||
|                 birth_date="1970-01-01", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user