Skip to content

Commit

Permalink
feat: add check for ldap mail edit
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Jul 2, 2024
1 parent f918d49 commit b9782f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/UserList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
>
<v-text-field
v-model.trim="editedItem.email"
:disabled="!isBasicAuth"
:disabled="!isBasicAuth && !ldapEmailEdit"
:label="$t('Email')"
:rules="[rules.required]"
required
Expand Down Expand Up @@ -529,6 +529,9 @@ export default {
isBasicAuth() {
return this.$config.provider == 'basic'
},
ldapEmailEdit() {
return this.$config.provider == 'ldap' && this.$config.ldap_email_edit
},
users() {
return this.$store.state.users.users.filter(u => !this.status || this.status.includes(u.status))
},
Expand Down

0 comments on commit b9782f8

Please sign in to comment.