Skip to content

Commit

Permalink
Remove useless change
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Mar 7, 2024
1 parent 03cd681 commit ea7cf7b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ai/backend/manager/models/gql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ea7cf7b

Please sign in to comment.