From a6411d52003f5c02f5e7d4f29cbcb638e617ea9b Mon Sep 17 00:00:00 2001 From: pasant9 Date: Sat, 1 Mar 2025 13:18:27 +0530 Subject: [PATCH] Make API Design Assitant only availalbe to users with apim:create scope --- .../Apis/Listing/components/TopMenu.jsx | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/components/TopMenu.jsx b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/components/TopMenu.jsx index b81a945a714..34595349ba7 100644 --- a/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/components/TopMenu.jsx +++ b/portals/publisher/src/main/webapp/source/src/app/components/Apis/Listing/components/TopMenu.jsx @@ -193,24 +193,25 @@ function TopMenu(props) { )} {/* Button to Create API with AI */} - + {!query && !isAPIProduct && !isRestricted(['apim:api_create']) && ( + + )} {showToggle && (