portal tab list
This commit is contained in:
@@ -34,7 +34,6 @@
|
||||
},
|
||||
"tabList": {
|
||||
"type": "array",
|
||||
"translation": "Global.scopeNamesPlural",
|
||||
"view": "views/portal/fields/tab-list"
|
||||
},
|
||||
"quickCreateList": {
|
||||
|
||||
@@ -30,15 +30,16 @@ Espo.define('views/portal/fields/tab-list', 'views/settings/fields/tab-list', fu
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
setup: function () {
|
||||
Dep.prototype.setup.call(this);
|
||||
setupOptions: function () {
|
||||
Dep.prototype.setupOptions.call(this);
|
||||
|
||||
this.params.options = this.params.options.filter(function (tab) {
|
||||
if (tab === '_delimiter_') return true;
|
||||
if (!!this.getMetadata().get('scopes.' + tab + '.aclPortal')) {
|
||||
return true;
|
||||
}
|
||||
}, this);
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user