[commands] Run global checks in help formatter.

Help formatter was not checking global bot-level checks, resulting in
showing commands a user did not have permission for with
show_check_failure disabled.
This commit is contained in:
khazhyk authored and Rapptz committed 2016-12-16 14:39:25 -05:00
1 parent 51fda76555
commit b1117262da
1 file changed
+1 -1
+1 -1
View File
@@ -252,7 +252,7 @@ class HelpFormatter:
return True
try:
return cmd.can_run(self.context)
return cmd.can_run(self.context) and self.context.bot.can_run(self.context)
except CommandError:
return False