Skip to content

Commit

Permalink
remove TEAM_CREATE_DATASET perm
Browse files Browse the repository at this point in the history
  • Loading branch information
svetleo-evidently committed Dec 3, 2024
1 parent bd8d40b commit 5729177
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/evidently/ui/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ class Permission(Enum):
DATASET_WRITE = "datasets_write"
DATASET_DELETE = "datasets_delete"

UNKNOWN = "unknown"


class Role(BaseModel):
id: RoleID
Expand All @@ -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,
Expand Down

0 comments on commit 5729177

Please sign in to comment.