Fix table permissions for CUI (#7513)

This commit is contained in:
Oliver 2024-06-26 09:47:51 +10:00 committed by GitHub
parent 9c3914db0a
commit 81ae9026b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -246,9 +246,9 @@ function loadAttachmentTable(model_type, model_id, options={}) {
let model_permissions = response?.permissions[model_type] ?? {};
permissions.delete = "delete" in model_permissions;
permissions.add = "add" in model_permissions;
permissions.change = "change" in model_permissions;
permissions.delete = model_permissions.includes("delete");
permissions.add = model_permissions.includes("add");
permissions.change = model_permissions.includes("change");
}
});