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
0e131e6b2f
commit
281a460960
|
@ -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