Skip to content

Commit

Permalink
[PENG-488] Change internal group names (#12724)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: c95be0231c912d709235c87429a6faba658b50fd
  • Loading branch information
stephencpope authored and Descartes Labs Build committed Nov 6, 2024
1 parent af38f92 commit dc1aeb8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions descarteslabs/core/catalog/catalog_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ def user_is_owner(self, auth=None):
if auth is None:
auth = self._client.auth

return "descarteslabs:platform-admin" in auth.payload.get("groups", []) or bool(
return "internal:platform-admin" in auth.payload.get("groups", []) or bool(
set(self.owners) & auth.all_owner_acl_subjects_as_set
)

Expand Down Expand Up @@ -1155,7 +1155,7 @@ def user_can_read(self, auth=None):
auth = self._client.auth

return (
"descarteslabs:platform-ro" in auth.payload.get("groups", [])
"internal:platform-ro" in auth.payload.get("groups", [])
or self.user_can_write(auth)
or bool(set(self.readers) & auth.all_acl_subjects_as_set)
)
2 changes: 1 addition & 1 deletion descarteslabs/core/catalog/event_api_destination.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class EventApiDestination(AuthCatalogObject):
A core event api destination is an event api destination that is fully managed by Descartes Labs. By
default this value is ``False`` and you must have a special permission
(``descarteslabs:core:create``) to set it to ``True``.
(``internal:core:create``) to set it to ``True``.
*Filterable, sortable*.
"""
Expand Down
2 changes: 1 addition & 1 deletion descarteslabs/core/catalog/event_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class EventRule(AuthCatalogObject):
A core event rule is an event rule that is fully managed by Descartes Labs. By
default this value is ``False`` and you must have a special permission
(``descarteslabs:core:create``) to set it to ``True``.
(``internal:core:create``) to set it to ``True``.
*Filterable, sortable*.
"""
Expand Down
2 changes: 1 addition & 1 deletion descarteslabs/core/catalog/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Product(AuthCatalogObject):
A core product is a product that is fully supported by Descartes Labs. By
default this value is ``False`` and you must have a special permission
(``descarteslabs:core:create``) to set it to ``True``.
(``internal:core:create``) to set it to ``True``.
*Filterable, sortable*.
"""
Expand Down

0 comments on commit dc1aeb8

Please sign in to comment.