Skip to content

Commit 48e1ada

Browse files
committed
Remove redundant is_internal check
1 parent 0d52692 commit 48e1ada

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shipchain_common/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def is_internal_call(request, service_name=None):
4848
and request.META['X_SSL_CLIENT_VERIFY'] == 'SUCCESS')
4949
if service_name and is_internal:
5050
certificate_cn = parse_dn(request.META['X_SSL_CLIENT_DN'])['CN']
51-
is_internal = is_internal and certificate_cn == f'{service_name}.{settings.ENVIRONMENT.lower()}-internal'
51+
is_internal = certificate_cn == f'{service_name}.{settings.ENVIRONMENT.lower()}-internal'
5252
return is_internal
5353

5454

0 commit comments

Comments
 (0)