From 8d4639fd7819d563a1a0d8a86174d275124f7ec9 Mon Sep 17 00:00:00 2001 From: dettlaff Date: Fri, 29 Nov 2024 19:54:20 +0400 Subject: [PATCH] fix: added a plug for ssh_keys --- selfprivacy_api/repositories/users/kanidm_user_repository.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfprivacy_api/repositories/users/kanidm_user_repository.py b/selfprivacy_api/repositories/users/kanidm_user_repository.py index ba51a33..bd4b46b 100644 --- a/selfprivacy_api/repositories/users/kanidm_user_repository.py +++ b/selfprivacy_api/repositories/users/kanidm_user_repository.py @@ -189,6 +189,7 @@ class KanidmUserRepository(AbstractUserRepository): username=attrs.get("name", [None])[0], displayname=attrs.get("displayname", [None])[0], email=attrs.get("mail", [None])[0], + ssh_keys=[], # actions layer will full in this field origin=origin, directmemberof=attrs.get("directmemberof", []), memberof=attrs.get("memberof", []), @@ -258,7 +259,7 @@ class KanidmUserRepository(AbstractUserRepository): username=attrs.get("name", [None])[0], displayname=attrs.get("displayname", [None])[0], email=attrs.get("mail", [None])[0], - ssh_keys=attrs.get("ssh_keys", []), + ssh_keys=[], # actions layer will full in this field origin=KanidmUserRepository._check_user_origin_by_memberof( memberof=attrs.get("memberof", []) ),