Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web/admin: add notes for users and groups #5459

Merged
merged 2 commits into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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