Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
fix(Felamimail/js): only show saveInAdbFields in admin module
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng-dev committed Jan 17, 2022
1 parent f6eaf74 commit eb58e56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tine20/Felamimail/js/AccountEditDialog.js
Expand Up @@ -298,6 +298,12 @@ Tine.Felamimail.AccountEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
disabled: !this.isSystemAccount()
});

if (this.asAdminModule) {
this.saveInAdbFields = Tine.Admin.UserEditDialog.prototype.getSaveInAddessbookFields(this, this.record.get('type') === 'system');
} else {
this.saveInAdbFields = [];
}

var commonFormDefaults = {
xtype: 'textfield',
anchor: '100%',
Expand Down Expand Up @@ -390,8 +396,7 @@ Tine.Felamimail.AccountEditDialog = Ext.extend(Tine.widgets.dialog.EditDialog, {
}, {
fieldLabel: this.app.i18n._('Organization'),
name: 'organization'
}, Tine.Admin.UserEditDialog.prototype.getSaveInAddessbookFields(this, this.record.get('type') === 'system'),
{
}], this.saveInAdbFields, [{
fieldLabel: this.app.i18n._('Signature position'),
name: 'signature_position',
typeAhead: false,
Expand Down

0 comments on commit eb58e56

Please sign in to comment.