providers/ldap: fix error in outpost when certificate is configured
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
c5dfe189f7
commit
d18e829d80
|
@ -78,7 +78,10 @@ class LDAPProvider(OutpostModel, Provider):
|
||||||
return f"LDAP Provider {self.name}"
|
return f"LDAP Provider {self.name}"
|
||||||
|
|
||||||
def get_required_objects(self) -> Iterable[Union[models.Model, str]]:
|
def get_required_objects(self) -> Iterable[Union[models.Model, str]]:
|
||||||
return [self, "authentik_core.view_user", "authentik_core.view_group"]
|
required_models = [self, "authentik_core.view_user", "authentik_core.view_group"]
|
||||||
|
if self.certificate is not None:
|
||||||
|
required_models.append(self.certificate)
|
||||||
|
return required_models
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
|
|
Reference in New Issue