Loading services/TS29222_CAPIF_Publish_Service_API/published_apis/core/validate_user.py +0 −3 Original line number Original line Diff line number Diff line Loading @@ -30,14 +30,11 @@ class ControlAccess(Resource): if service_id not in cert_entry["resources"].get("services"): if service_id not in cert_entry["resources"].get("services"): is_user_owner = False is_user_owner = False if is_user_owner == False: if is_user_owner == False: current_app.logger.info("STEP3") prob = ProblemDetails( prob = ProblemDetails( title="Unauthorized", title="Unauthorized", detail="User not authorized", detail="User not authorized", cause="You are not the owner of this resource") cause="You are not the owner of this resource") current_app.logger.info("STEP4") prob = serialize_clean_camel_case(prob) prob = serialize_clean_camel_case(prob) current_app.logger.info("STEP5") return Response( return Response( json.dumps(prob, cls=CustomJSONEncoder), json.dumps(prob, cls=CustomJSONEncoder), status=401, status=401, Loading Loading
services/TS29222_CAPIF_Publish_Service_API/published_apis/core/validate_user.py +0 −3 Original line number Original line Diff line number Diff line Loading @@ -30,14 +30,11 @@ class ControlAccess(Resource): if service_id not in cert_entry["resources"].get("services"): if service_id not in cert_entry["resources"].get("services"): is_user_owner = False is_user_owner = False if is_user_owner == False: if is_user_owner == False: current_app.logger.info("STEP3") prob = ProblemDetails( prob = ProblemDetails( title="Unauthorized", title="Unauthorized", detail="User not authorized", detail="User not authorized", cause="You are not the owner of this resource") cause="You are not the owner of this resource") current_app.logger.info("STEP4") prob = serialize_clean_camel_case(prob) prob = serialize_clean_camel_case(prob) current_app.logger.info("STEP5") return Response( return Response( json.dumps(prob, cls=CustomJSONEncoder), json.dumps(prob, cls=CustomJSONEncoder), status=401, status=401, Loading