From b1508b9d0121619565afbb7e1c8db2a84e7e50eb Mon Sep 17 00:00:00 2001 From: Jens L Date: Wed, 3 May 2023 15:19:14 +0300 Subject: [PATCH] web/admin: add notes for users and groups (#5459) * web/admin: add notes for users and groups Signed-off-by: Jens Langhammer * fix unrelated typo Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer --- web/src/admin/groups/GroupViewPage.ts | 14 ++++++++++++++ web/src/admin/users/UserViewPage.ts | 16 +++++++++++++++- web/src/common/ui/config.ts | 4 ++-- website/integrations/services/proftpd/index.md | 2 +- 4 files changed, 32 insertions(+), 4 deletions(-) diff --git a/web/src/admin/groups/GroupViewPage.ts b/web/src/admin/groups/GroupViewPage.ts index abbab6336..e29a17858 100644 --- a/web/src/admin/groups/GroupViewPage.ts +++ b/web/src/admin/groups/GroupViewPage.ts @@ -134,6 +134,20 @@ export class GroupViewPage extends AKElement { +
+
${t`Notes`}
+
+ ${Object.hasOwn(this.group?.attributes || {}, "notes") + ? html`${this.group.attributes?.notes}` + : html` +

+ ${t`Edit the notes attribute of this group to add notes here. Markdown is supported.`} +

+ `} +
+
diff --git a/web/src/admin/users/UserViewPage.ts b/web/src/admin/users/UserViewPage.ts index dfd2c5f2d..4caf3612a 100644 --- a/web/src/admin/users/UserViewPage.ts +++ b/web/src/admin/users/UserViewPage.ts @@ -280,7 +280,21 @@ export class UserViewPage extends AKElement {
+
${t`Notes`}
+
+ ${Object.hasOwn(this.user?.attributes || {}, "notes") + ? html`${this.user.attributes?.notes}` + : html` +

+ ${t`Edit the notes attribute of this user to add notes here. Markdown is supported.`} +

+ `} +
+
+
${t`Changelog`}
diff --git a/web/src/common/ui/config.ts b/web/src/common/ui/config.ts index 57f0d4ced..1007af1bb 100644 --- a/web/src/common/ui/config.ts +++ b/web/src/common/ui/config.ts @@ -44,8 +44,8 @@ export interface UIConfig { }; locale: string; defaults: { - userPath: string, - }, + userPath: string; + }; } export class DefaultUIConfig implements UIConfig { diff --git a/website/integrations/services/proftpd/index.md b/website/integrations/services/proftpd/index.md index 870793095..9b7e9f9dd 100644 --- a/website/integrations/services/proftpd/index.md +++ b/website/integrations/services/proftpd/index.md @@ -77,7 +77,7 @@ DefaultRoot /your/ftp/storage/dir LDAPBindDN cn=ldapservice,ou=users,dc=ldap,dc=goauthentik,dc=io PASSWORDOFLDAPSERVICE # The second parameter is optional # In this case I am restricting access to the group ftpusers - # Instead you could also create bind policys in your created authentik application + # Instead you could also create bind policies in your created authentik application LDAPUsers ou=users,dc=ldap,dc=goauthentik,dc=io (&(objectClass=user)(cn=%u)(memberOf=cn=ftpusers,ou=groups,dc=ldap,dc=goauthentik,dc=io)) # In this example, I am forcing the permission of all files to the system user/group 1000