row actions acl check

This commit is contained in:
Yuri Kuznetsov
2025-01-09 11:13:03 +02:00
parent 4fb30b0b7b
commit dbc96859af
@@ -196,8 +196,10 @@ class DefaultRowActionsView extends View {
return;
}
if (item.acl && item.acl !== 'read' && !this.options.acl[item.acl]) {
return;
if (item.acl && item.acl !== 'read') {
if (!this.getAcl().checkModel(this.model, item.acl)) {
return;
}
}
list.push({