0

Fixed incorrect logic for permission check in single track additions.

This commit is contained in:
Logan Fick
2019-05-25 18:50:10 -04:00
parent b40dd8b9b0
commit a45ecad661

View File

@@ -65,7 +65,7 @@ public final class TrackLoadHandler implements AudioLoadResultHandler {
return;
}
if ((info.length >= 60000 && info.length <= 900000) || PermissionManager.isWhitelisted(this.requester)) {
if (!(info.length >= 60000 && info.length <= 900000) && !PermissionManager.isWhitelisted(this.requester)) {
response = new CommandResponse("no_entry_sign",
"Sorry " + this.requester.getAsMention()
+ ", but you can only add tracks between 1 and 15 minutes in length.").setDeletionDelay(10,