michaelimfeld / ownbot

Easy to use python module to create private telegram bots.
MIT License
31 stars 6 forks source link

Error on security log warning #6

Closed ggrigon closed 8 years ago

ggrigon commented 8 years ago

There is a log warning for the seconde allowed group on the decorator. The command run without a problem, but puts a erroneous log entry

@requires_usergroup("users", "otherusers")

log example

2016-05-07 17:23:39,209 - __main__ - INFO - COMMAND acionado por username -- 2016-05-07 17:23:39.209001
2016-05-07 17:23:39,284 - ownbot.auth - WARNING - The user '@username' with id 'IDNUMBER' tried to execute the protected command '/COMMAND '!
michaelimfeld commented 8 years ago

This seems to be an issue in your implementation.