diff --git a/bento_lib/auth/permissions.py b/bento_lib/auth/permissions.py index 65f40b9..dfc072b 100644 --- a/bento_lib/auth/permissions.py +++ b/bento_lib/auth/permissions.py @@ -164,6 +164,13 @@ def supports_data_type_narrowing(self) -> bool: P_VIEW_NOTIFICATIONS = Permission(VIEW_VERB, NOTIFICATIONS) P_CREATE_NOTIFICATIONS = Permission(CREATE_VERB, NOTIFICATIONS) +# - dataset metadata editing +P_EDIT_DATASET = Permission(EDIT_VERB, DATASET, supports_data_type_narrowing=False) + +# - can view edit permissions for the resource which granted this permission only: +P_VIEW_PERMISSIONS = Permission(VIEW_VERB, PERMISSIONS_NOUN) +P_EDIT_PERMISSIONS = Permission(EDIT_VERB, PERMISSIONS_NOUN) + # --- # only {everything: true} or {project: ...} (instance- or project-level): @@ -177,15 +184,6 @@ def supports_data_type_narrowing(self) -> bool: DELETE_VERB, DATASET, min_level_required=LEVEL_PROJECT, supports_data_type_narrowing=False, gives=(P_DELETE_DATA,)) # --- -# - dataset metadata editing -P_EDIT_DATASET = Permission(EDIT_VERB, DATASET) - -# can view edit permissions for the resource which granted this permission only: -P_VIEW_PERMISSIONS = Permission(VIEW_VERB, PERMISSIONS_NOUN) -P_EDIT_PERMISSIONS = Permission(EDIT_VERB, PERMISSIONS_NOUN) - -# --- - # only {everything: true} (instance-level): # - drop box diff --git a/poetry.lock b/poetry.lock index e3e5ee7..e1e59a1 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1709,13 +1709,13 @@ ocsp = ["cryptography (>=36.0.1)", "pyopenssl (==20.0.1)", "requests (>=2.26.0)" [[package]] name = "referencing" -version = "0.35.0" +version = "0.35.1" description = "JSON Referencing + Python" optional = false python-versions = ">=3.8" files = [ - {file = "referencing-0.35.0-py3-none-any.whl", hash = "sha256:8080727b30e364e5783152903672df9b6b091c926a146a759080b62ca3126cd6"}, - {file = "referencing-0.35.0.tar.gz", hash = "sha256:191e936b0c696d0af17ad7430a3dc68e88bc11be6514f4757dc890f04ab05889"}, + {file = "referencing-0.35.1-py3-none-any.whl", hash = "sha256:eda6d3234d62814d1c64e305c1331c9a3a6132da475ab6382eaa997b21ee75de"}, + {file = "referencing-0.35.1.tar.gz", hash = "sha256:25b42124a6c8b632a425174f24087783efb348a6f1e0008e63cd4466fedf703c"}, ] [package.dependencies] diff --git a/pyproject.toml b/pyproject.toml index 15c4132..e551bfe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bento-lib" -version = "11.7.0" +version = "11.7.1" description = "A set of common utilities and helpers for Bento platform services." authors = [ "David Lougheed ",