convert lead skip disabled entity types

This commit is contained in:
yuri
2018-07-09 10:54:29 +03:00
parent 8e7d607ad4
commit 539c0d22d7
@@ -81,6 +81,7 @@ Espo.define('crm:views/lead/convert', 'view', function (Dep) {
if (scope == 'Account' && this.getConfig().get('b2cMode')) {
return;
}
if (this.getMetadata().get(['scopes', scope, 'disabled'])) return;
if (this.getAcl().check(scope, 'edit')) {
scopeList.push(scope);
}