From 1b701080b753c3905549bc8517f7a4cb0a301a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Miguel=20Garc=C3=ADa=20Mancebo?= Date: Tue, 22 Nov 2022 11:45:35 +0100 Subject: [PATCH] If trying to edit an item that is not mine, return soon --- plugin/admin/js/plebeian-market-admin-screen-items.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/admin/js/plebeian-market-admin-screen-items.js b/plugin/admin/js/plebeian-market-admin-screen-items.js index 05c64f3..362a914 100644 --- a/plugin/admin/js/plebeian-market-admin-screen-items.js +++ b/plugin/admin/js/plebeian-market-admin-screen-items.js @@ -155,7 +155,7 @@ function rebindIconClicks() { if (item_info_from_api.is_mine === false) { // showAlertModal("You don't have permission to modify this item because it's not yours."); - // return; + return; } $('#titleModalItemInfo').text(pmtype === 'buynow' ? 'Modify BuyNow product' : 'Modify Auction');