Skip to content

Commit

Permalink
Merge pull request #46 from omegalink12/patch-1
Browse files Browse the repository at this point in the history
Fix isUserAllowed to actually return false
  • Loading branch information
Darkside138 authored Jan 26, 2017
2 parents aefef0c + 8dce0d4 commit 87c8d5c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,12 @@ public List<net.dirtydeeds.discordsoundboard.beans.User> getUsers() {
public boolean isUserAllowed(String username) {
if (allowedUsers == null) {
return true;
} else if (!allowedUsers.isEmpty() && allowedUsers.contains(username)){
} else if (allowedUsers.isEmpty()){
return true;
} else {
} else if (allowedUsers.contains(username)){
return true;
} else {
return false;
}
}

Expand Down

0 comments on commit 87c8d5c

Please sign in to comment.