Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Possible fix for #120
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtomi authored May 10, 2022
1 parent 933cf0d commit 8b0f6f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ public CompletableFuture<List<String>> suggestAsync(Invocation invocation) {

@Override
public boolean hasPermission(Invocation invocation) {
return invocation.source().hasPermission(permission);
return permission == null || invocation.source().hasPermission(permission);
}
}

1 comment on commit 8b0f6f3

@KairuByte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does indeed fix #120

Please sign in to comment.