core/homeassistant/auth/permissions/system_policies.py

9 lines
223 B
Python
Raw Normal View History

"""System policies."""
from .const import CAT_ENTITIES, SUBCAT_ALL, POLICY_READ
2019-07-31 19:25:30 +00:00
ADMIN_POLICY = {CAT_ENTITIES: True}
2019-07-31 19:25:30 +00:00
USER_POLICY = {CAT_ENTITIES: True}
2019-07-31 19:25:30 +00:00
READ_ONLY_POLICY = {CAT_ENTITIES: {SUBCAT_ALL: {POLICY_READ: True}}}