Adding audit log

This commit is contained in:
Ian Roddis committed 2026-06-25 11:25:26 -03:00
1 parent fe6f9cca05
commit 45bc5bf8f6
18 files changed
+543 -119

No files matched your search

+2 -1
View File
@@ -39,11 +39,12 @@ PERMISSIONS = [
("part_types:read", "View part types"),
("part_types:write", "Create and update part types"),
("part_types:delete", "Delete part types"),
("audit_log:read", "View audit log"),
]
# Default roles -> permission names. "admin" gets everything.
ROLES = {
"admin": [name for name, _ in PERMISSIONS],
"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"],
}