Skip to content

Commit 7e5435c

Browse files
committed
remove unused codes
1 parent 81b2e90 commit 7e5435c

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/ai/backend/manager/models/rbac_models/migration/enums.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,6 @@ def member_operations(cls) -> set[OperationType]:
8181
cls.READ,
8282
}
8383

84-
@classmethod
85-
def monitor_operations(cls) -> set[OperationType]:
86-
"""
87-
Returns a set of operations that are considered monitor operations.
88-
Monitor operations are those that allow read access.
89-
"""
90-
return {
91-
cls.READ,
92-
}
93-
9484

9585
class ScopeType(enum.StrEnum):
9686
DOMAIN = "domain"

src/ai/backend/manager/models/rbac_models/migration/user.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
OperationType.GRANT_READ,
2626
OperationType.GRANT_UPDATE,
2727
}
28-
SUPERADMIN_OPERATIONS = OPERATIONS_IN_ROLE
29-
MONITOR_OPERATIONS = {OperationType.READ}
3028

3129

3230
class UserRole(enum.StrEnum):

0 commit comments

Comments
 (0)