* Add read only and admin policies * Migrate to 2 system groups * Add system groups * Add system groups admin & read only * Dont' mutate parameters * Fix types
15 lines
236 B
Python
15 lines
236 B
Python
"""System policies."""
|
|
from .const import CAT_ENTITIES, SUBCAT_ALL, POLICY_READ
|
|
|
|
ADMIN_POLICY = {
|
|
CAT_ENTITIES: True,
|
|
}
|
|
|
|
READ_ONLY_POLICY = {
|
|
CAT_ENTITIES: {
|
|
SUBCAT_ALL: {
|
|
POLICY_READ: True
|
|
}
|
|
}
|
|
}
|