fix panel actions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user