From f4b7df8c92edfc16c62cb723def10c27d0ecfcad Mon Sep 17 00:00:00 2001 From: Steven M Date: Thu, 8 Dec 2016 20:08:28 +0100 Subject: [PATCH] Add additional check for permissions (#42) --- src/main/java/de/epiceric/shopchest/utils/ShopUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java index af1d00b..357ef9f 100644 --- a/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java +++ b/src/main/java/de/epiceric/shopchest/utils/ShopUtils.java @@ -122,7 +122,7 @@ public class ShopUtils { boolean useDefault = true; for (PermissionAttachmentInfo permInfo : p.getEffectivePermissions()) { - if (permInfo.getPermission().startsWith("shopchest.limit.")) { + if (permInfo.getPermission().startsWith("shopchest.limit.") && p.hasPermission(permInfo.getPermission())) { if (permInfo.getPermission().equalsIgnoreCase(Permissions.NO_LIMIT)) { limit = -1; useDefault = false;