Adding OData Import

This commit is contained in:
Ian Roddis committed 2026-06-25 15:52:21 -03:00
1 parent c8696e67b5
commit 291416544e
18 files changed
+547 -3

No files matched your search

+4 -1
View File
@@ -47,13 +47,16 @@ PERMISSIONS = [
("sub_part_types:read", "View sub part types"),
("sub_part_types:write", "Create and update sub part types"),
("sub_part_types:delete", "Delete sub part types"),
("imported_parts:read", "View imported parts"),
("imported_parts:write", "Sync and configure imported parts"),
("imported_parts:delete", "Delete imported parts"),
("audit_log:read", "View audit log"),
]
# Default roles -> permission names. "admin" gets everything.
ROLES = {
"admin": [name for name, _ in PERMISSIONS], # includes audit_log:read
"user": ["users:read", "iso_threads:read", "unc_threads:read", "manufacturers:read", "scope_models:read", "part_types:read", "sub_part_types:read"],
"user": ["users:read", "iso_threads:read", "unc_threads:read", "manufacturers:read", "scope_models:read", "part_types:read", "sub_part_types:read", "imported_parts:read"],
}