From 52f25005728549831c3ba4d63553e1fbc47896a4 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Tue, 8 Oct 2024 18:19:05 +0530 Subject: [PATCH] Improved: added app base permission(#323) --- .env.example | 2 +- src/authorization/Rules.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index a80f5485..2b19d2f7 100644 --- a/.env.example +++ b/.env.example @@ -13,7 +13,7 @@ VUE_APP_INITIAL_JOB_TYPES={"JOB_IMP_PROD_NEW_BLK":"products","JOB_IMP_ORD_BLK":" VUE_APP_BASE_URL= VUE_APP_BATCH_JOB_ENUMS={"JOB_BKR_ORD_UNF":{"id":"JOB_BKR_ORD_UNF","facilityId":"_NA_","unfillable": true},"JOB_BKR_ORD":{"id": "JOB_BKR_ORD","facilityId":"_NA_","unfillable": false},"JOB_BKR_PREORD_UNF":{"id":"JOB_BKR_PREORD_UNF","facilityId":"PRE_ORDER_PARKING","unfillable":true},"JOB_BKR_PREORD":{"id":"JOB_BKR_PREORD","facilityId":"PRE_ORDER_PARKING","unfillable":false},"JOB_BKR_BACKORD_UNF":{"id":"JOB_BKR_BACKORD_UNF","facilityId":"BACKORDER_PARKING","unfillable":true},"JOB_BKR_BACKORD":{"id":"JOB_BKR_BACKORD","facilityId":"BACKORDER_PARKING","unfillable":false}} VUE_APP_WEBHOOK_ENUMS={"NEW_PRODUCTS":"products/create","DELETE_PRODUCTS":"products/delete","NEW_ORDERS":"orders/create","CANCELLED_ORDERS":"orders/cancelled","PAYMENT_STATUS":"order_transactions/create","RETURNS":"refunds/create","BULK_OPERATIONS_FINISH":"bulk_operations/finish", "INVENTORY_LEVEL_UPDATE":"inventory_levels/update"} -VUE_APP_PERMISSION_ID= +VUE_APP_PERMISSION_ID="JOB_MANAGER_APP_VIEW" VUE_APP_ALIAS= VUE_APP_DEFAULT_LOG_LEVEL="error" VUE_APP_LOGIN_URL="http://launchpad.hotwax.io/login" diff --git a/src/authorization/Rules.ts b/src/authorization/Rules.ts index 64e02dec..e4bf4055 100644 --- a/src/authorization/Rules.ts +++ b/src/authorization/Rules.ts @@ -13,5 +13,6 @@ export default { "APP_BULK_EDITOR_VIEW": "COMMON_ADMIN", "APP_JOB_VIEW": "", "APP_JOB_UPDATE": "COMMON_ADMIN", - "APP_CUSTOM_FREQ_VIEW": "COMMON_ADMIN" + "APP_CUSTOM_FREQ_VIEW": "COMMON_ADMIN", + "JOB_MANAGER_APP_VIEW": "JOB_MANAGER_APP_VIEW" } as any \ No newline at end of file