adding static connection
This commit is contained in:
1 parent
eba7896893
commit
422e217180
14 files changed
+405
-2
No files matched your search
+4
-1
@@ -50,13 +50,16 @@ PERMISSIONS = [
|
||||
("imported_parts:read", "View imported parts"),
|
||||
("imported_parts:write", "Sync and configure imported parts"),
|
||||
("imported_parts:delete", "Delete imported parts"),
|
||||
("static_connections:read", "View static connections"),
|
||||
("static_connections:write", "Create and update static connections"),
|
||||
("static_connections:delete", "Delete static connections"),
|
||||
("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", "imported_parts: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", "static_connections:read"],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user