Add additional check for permissions (#42)

This commit is contained in:
Steven M 2016-12-08 20:08:28 +01:00 committed by Eric
parent 192b124eb5
commit f4b7df8c92

View File

@ -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;