Adding Attachment Points

This commit is contained in:
Ian Roddis committed 2026-07-02 14:06:18 -03:00
1 parent 2767fb1c8e
commit ceae27a12e
15 files changed
+729 -3

No files matched your search

+4 -1
View File
@@ -65,6 +65,9 @@ PERMISSIONS = [
("attachment_point_names:read", "View attachment point names"),
("attachment_point_names:write", "Create and update attachment point names"),
("attachment_point_names:delete", "Delete attachment point names"),
("attachment_points:read", "View attachment points"),
("attachment_points:write", "Create and update attachment points"),
("attachment_points:delete", "Delete attachment points"),
("augmented_parts:read", "View augmented parts"),
("augmented_parts:write", "Create and update augmented parts"),
("augmented_parts:delete", "Delete augmented parts"),
@@ -74,7 +77,7 @@ PERMISSIONS = [
# 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_colours:read", "part_types:read", "sub_part_types:read", "imported_parts:read", "static_connections:read", "clamp_connections:read", "attachment_point_names:read", "augmented_parts:read"],
"user": ["users:read", "iso_threads:read", "unc_threads:read", "manufacturers:read", "scope_models:read", "part_colours:read", "part_types:read", "sub_part_types:read", "imported_parts:read", "static_connections:read", "clamp_connections:read", "attachment_point_names:read", "attachment_points:read", "augmented_parts:read"],
}