Adding Manufacturers and ScopeModels
This commit is contained in:
1 parent
9111117404
commit
b7ad517174
24 files changed
+822
-2
No files matched your search
+7
-1
@@ -27,12 +27,18 @@ PERMISSIONS = [
|
||||
("unc_threads:read", "View UNC threads"),
|
||||
("unc_threads:write", "Create and update UNC threads"),
|
||||
("unc_threads:delete", "Delete UNC threads"),
|
||||
("manufacturers:read", "View manufacturers"),
|
||||
("manufacturers:write", "Create and update manufacturers"),
|
||||
("manufacturers:delete", "Delete manufacturers"),
|
||||
("scope_models:read", "View scope models"),
|
||||
("scope_models:write", "Create and update scope models"),
|
||||
("scope_models:delete", "Delete scope models"),
|
||||
]
|
||||
|
||||
# Default roles -> permission names. "admin" gets everything.
|
||||
ROLES = {
|
||||
"admin": [name for name, _ in PERMISSIONS],
|
||||
"user": ["users:read", "iso_threads:read", "unc_threads:read"],
|
||||
"user": ["users:read", "iso_threads:read", "unc_threads:read", "manufacturers:read", "scope_models:read"],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user