Adding augmented parts
This commit is contained in:
1 parent
2e7002b73b
commit
00fb43c8ed
14 files changed
+590
-2
No files matched your search
+4
-1
@@ -56,13 +56,16 @@ PERMISSIONS = [
|
||||
("static_connections:read", "View static connections"),
|
||||
("static_connections:write", "Create and update static connections"),
|
||||
("static_connections:delete", "Delete static connections"),
|
||||
("augmented_parts:read", "View augmented parts"),
|
||||
("augmented_parts:write", "Create and update augmented parts"),
|
||||
("augmented_parts:delete", "Delete augmented 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_colours:read", "part_types:read", "sub_part_types:read", "imported_parts:read", "static_connections: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", "augmented_parts:read"],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user