fix outpost not having perms for cert
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
"""Radius Provider"""
|
"""Radius Provider"""
|
||||||
|
|
||||||
|
from collections.abc import Iterable
|
||||||
from django.db import models
|
from django.db import models
|
||||||
from django.templatetags.static import static
|
from django.templatetags.static import static
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
@ -65,6 +66,12 @@ class RadiusProvider(OutpostModel, Provider):
|
|||||||
|
|
||||||
return RadiusProviderSerializer
|
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):
|
def __str__(self):
|
||||||
return f"Radius Provider {self.name}"
|
return f"Radius Provider {self.name}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user