From 5729177c6c60b9a25a9e20b46bc085b618603cff Mon Sep 17 00:00:00 2001 From: Svetlana Popova Date: Tue, 3 Dec 2024 11:48:44 +0100 Subject: [PATCH] remove TEAM_CREATE_DATASET perm --- src/evidently/ui/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/evidently/ui/base.py b/src/evidently/ui/base.py index 7c9a6d0f99..9b92f4db17 100644 --- a/src/evidently/ui/base.py +++ b/src/evidently/ui/base.py @@ -410,6 +410,8 @@ class Permission(Enum): DATASET_WRITE = "datasets_write" DATASET_DELETE = "datasets_delete" + UNKNOWN = "unknown" + class Role(BaseModel): id: RoleID @@ -426,7 +428,7 @@ class DefaultRole(Enum): DEFAULT_ROLE_PERMISSIONS: Dict[Tuple[DefaultRole, Optional[EntityType]], Set[Permission]] = { - (DefaultRole.OWNER, None): set(Permission), + (DefaultRole.OWNER, None): set(Permission) - {Permission.UNKNOWN}, (DefaultRole.EDITOR, EntityType.Org): { Permission.LIST_USERS, Permission.ORG_READ,