providers/radius: fix custom attribute (#10704)

* providers/radius: fix error when adding custom attribute

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* fix ldap source property mapping form

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2024-07-31 18:00:24 +02:00
committed by GitHub
parent 122cf4f744
commit d2c96da5f2
2 changed files with 6 additions and 3 deletions

View File

@ -21,6 +21,7 @@ import {
PropertyMappingTestRequest,
PropertyMappingTestResult,
PropertymappingsApi,
RbacPermissionsAssignedByUsersListModelEnum,
User,
} from "@goauthentik/api";
@ -67,7 +68,8 @@ export class PolicyTestForm extends Form<PropertyMappingTestRequest> {
}
renderExampleButtons() {
return this.mapping?.metaModelName === "authentik_sources_ldap.ldappropertymapping"
return this.mapping?.metaModelName ===
RbacPermissionsAssignedByUsersListModelEnum.SourcesLdapLdapsourcepropertymapping
? html`<p>${msg("Example context data")}</p>
${this.renderExampleLDAP()}`
: nothing;