fisable group tabs for portal
This commit is contained in:
@@ -26,21 +26,24 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('views/portal/fields/tab-list', 'views/settings/fields/tab-list', function (Dep) {
|
||||
define('views/portal/fields/tab-list', ['views/settings/fields/tab-list'], function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
noGroups: true,
|
||||
|
||||
setupOptions: function () {
|
||||
Dep.prototype.setupOptions.call(this);
|
||||
|
||||
this.params.options = this.params.options.filter(function (tab) {
|
||||
if (tab === '_delimiter_') return true;
|
||||
this.params.options = this.params.options.filter(tab => {
|
||||
if (tab === '_delimiter_') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!!this.getMetadata().get('scopes.' + tab + '.aclPortal')) {
|
||||
return true;
|
||||
}
|
||||
}, this);
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user