Skip to content

Commit

Permalink
web/admin: add notes for users and groups (#5459)
Browse files Browse the repository at this point in the history
* web/admin: add notes for users and groups

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

* fix unrelated typo

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

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu committed May 3, 2023
1 parent 4601864 commit b1508b9
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
14 changes: 14 additions & 0 deletions web/src/admin/groups/GroupViewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,20 @@ export class GroupViewPage extends AKElement {
</ak-forms-modal>
</div>
</div>
<div
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-9-col-on-xl pf-m-9-col-on-2xl"
>
<div class="pf-c-card__title">${t`Notes`}</div>
<div class="pf-c-card__body">
${Object.hasOwn(this.group?.attributes || {}, "notes")
? html`${this.group.attributes?.notes}`
: html`
<p>
${t`Edit the notes attribute of this group to add notes here. Markdown is supported.`}
</p>
`}
</div>
</div>
<div
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-12-col-on-xl pf-m-12-col-on-2xl"
>
Expand Down
16 changes: 15 additions & 1 deletion web/src/admin/users/UserViewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,21 @@ export class UserViewPage extends AKElement {
</div>
</div>
<div
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-12-col-on-xl pf-m-12-col-on-2xl"
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-3-col-on-xl pf-m-3-col-on-2xl"
>
<div class="pf-c-card__title">${t`Notes`}</div>
<div class="pf-c-card__body">
${Object.hasOwn(this.user?.attributes || {}, "notes")
? html`${this.user.attributes?.notes}`
: html`
<p>
${t`Edit the notes attribute of this user to add notes here. Markdown is supported.`}
</p>
`}
</div>
</div>
<div
class="pf-c-card pf-l-grid__item pf-m-12-col pf-m-9-col-on-xl pf-m-9-col-on-2xl"
>
<div class="pf-c-card__title">${t`Changelog`}</div>
<div class="pf-c-card__body">
Expand Down
4 changes: 2 additions & 2 deletions web/src/common/ui/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export interface UIConfig {
};
locale: string;
defaults: {
userPath: string,
},
userPath: string;
};
}

export class DefaultUIConfig implements UIConfig {
Expand Down
2 changes: 1 addition & 1 deletion website/integrations/services/proftpd/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1508b9

Please sign in to comment.