web/admin: add notes for users and groups (#5459)
* 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>
This commit is contained in:
parent
4601864f94
commit
b1508b9d01
|
@ -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"
|
||||
>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -44,8 +44,8 @@ export interface UIConfig {
|
|||
};
|
||||
locale: string;
|
||||
defaults: {
|
||||
userPath: string,
|
||||
},
|
||||
userPath: string;
|
||||
};
|
||||
}
|
||||
|
||||
export class DefaultUIConfig implements UIConfig {
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue