From 51f4a8d83daf4d5aa78a0865c3ff6677f8bdf978 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 16 May 2025 22:12:38 +0200 Subject: [PATCH] fix outpost not having perms for cert Signed-off-by: Jens Langhammer --- authentik/providers/radius/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/authentik/providers/radius/models.py b/authentik/providers/radius/models.py index 4f936c3a53..ddeadd526a 100644 --- a/authentik/providers/radius/models.py +++ b/authentik/providers/radius/models.py @@ -1,5 +1,6 @@ """Radius Provider""" +from collections.abc import Iterable from django.db import models from django.templatetags.static import static from django.utils.translation import gettext_lazy as _ @@ -65,6 +66,12 @@ class RadiusProvider(OutpostModel, Provider): return RadiusProviderSerializer + def get_required_objects(self) -> Iterable[models.Model | str]: + required_models = [self] + if self.certificate is not None: + required_models.append(self.certificate) + return required_models + def __str__(self): return f"Radius Provider {self.name}"