fix panel actions

This commit is contained in:
yuri
2018-10-31 13:04:11 +02:00
parent c0719694ba
commit 573d14f854
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ define('views/record/panel-actions', 'view', function (Dep) {
},
setup: function () {
this.buttonList = this.options.defs.buttonList;
this.actionList = this.options.defs.actionList;
this.buttonList = this.options.defs.buttonList || [];
this.actionList = this.options.defs.actionList || [];
},
getButtonList: function () {
@@ -80,6 +80,7 @@ define('views/record/panels-container', 'view', function (Dep) {
},
applyAccessToActions: function (actionList) {
if (!actionList) return;
actionList.forEach(function (item) {
if (Espo.Utils.checkActionAccess(this.getAcl(), this.model, item, true)) {
if (item.isHiddenByAcl) {