apps: adapt validation context testing to case discrepancy (#66577)
This commit is contained in:
parent
1b772fe375
commit
a2238cc044
|
@ -432,7 +432,10 @@ class AppConfig(django.apps.AppConfig):
|
|||
def display(self, user, request):
|
||||
if user.ou and user.ou.slug != 'usagers':
|
||||
return False
|
||||
if user.attributes.validated and user.attributes.validation_context == 'fc':
|
||||
if user.attributes.validated and user.attributes.validation_context in (
|
||||
'fc',
|
||||
'FC',
|
||||
): # oops, it seems that fc context may be upper- or lowercase
|
||||
return False
|
||||
if user.attributes.validated:
|
||||
self.title = 'Modifier les données coeur'
|
||||
|
|
Loading…
Reference in New Issue