def METHOD_NAME(self, request: Request, view, obj) -> bool:
    if bypass_permissions(request):
        return True
    scopes_required = get_required_scopes(request, view)
    component = self.get_component(view)
    if not self.permission_fields:
        return request.jwt_auth.has_auth(scopes_required, component)
    main_resource = self.get_main_resource()
    if view.__class__ is main_resource:
        main_object = obj
    else:
        main_object = self.get_main_object(obj, view.permission_main_object)
    main_object_data = self.format_data(main_object, request)
    fields = self.get_fields(main_object_data)
    return request.jwt_auth.has_auth(scopes_required, component, **fields)