diff --git a/src/ai/backend/manager/models/gql.py b/src/ai/backend/manager/models/gql.py index ebcfcea708..7b63ed9bfc 100644 --- a/src/ai/backend/manager/models/gql.py +++ b/src/ai/backend/manager/models/gql.py @@ -2145,7 +2145,6 @@ async def resolve_model_cards( class GQLMutationPrivilegeCheckMiddleware: def resolve(self, next, root, info: graphene.ResolveInfo, **args) -> Any: graph_ctx: GraphQueryContext = info.context - if info.operation.operation == OperationType.MUTATION and len(info.path) == 1: mutation_cls = getattr(Mutations, info.field_name).type # default is allow nobody.