mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix table permissions for CUI (#7513)
This commit is contained in:
parent
9c3914db0a
commit
81ae9026b2
@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user