fisable group tabs for portal

This commit is contained in:
Yuri Kuznetsov
2023-02-06 17:10:41 +02:00
parent fe3ab8b8a0
commit 5b8ccb4513
+10 -7
View File
@@ -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);
}
});
},
});
});