Skip to content
Snippets Groups Projects
Commit c894f959 authored by lass's avatar lass
Browse files

Update harbor url & add settings variable to api

parent 89388fc4
No related branches found
No related tags found
1 merge request!401Update harbor url & add settings variable to api
Pipeline #190357 passed
FROM harbor.uio.no/library/docker.io-node:16-alpine as build-stage
FROM harbor.uio.no/mirrors/docker.io/library/node:16-alpine as build-stage
LABEL org.opencontainers.image.authors="bnt-int@usit.uio.no"
LABEL no.uio.contact="bnt-int@usit.uio.no"
......@@ -12,7 +12,7 @@ RUN cd /app/ && npm ci && npm run build:no-env
### Final image
FROM harbor.uio.no/library/docker.io-nginx:latest
FROM harbor.uio.no/mirrors/docker.io/library/nginx:latest
# Install various utilities
# jq is needed for the docker entrypoint
......
......@@ -316,11 +316,7 @@ class FrontPageGuestSerializer(serializers.ModelSerializer):
[
x
for x in obj.identities.all()
if x.type
in [
Identity.IdentityType.NORWEGIAN_NATIONAL_ID_NUMBER,
Identity.IdentityType.PASSPORT_NUMBER,
]
if x.type in settings.ALLOWED_VERIFIED_ID_TYPES
and x.verified_at
and x.verified_at <= timezone.now()
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment