GroupButler icon indicating copy to clipboard operation
GroupButler copied to clipboard

Issue with admin mode when the bot is turned off

Open Qwerty-Space opened this issue 6 years ago • 0 comments

Describe the bug I was doing some testing with admin mode. If the bot is turned off, and a non superadmin adds the bot to a group, then the bot turns on, it will act as if a superadmin added it to the group.

Steps to reproduce Steps to reproduce the behavior:

  1. Enable GB_ADMIN_MODE=true
  2. Turn off bot
  3. Get non superadmin to add to group
  4. Turn on bot
  5. Make non-super admin do commands, or make bot an admin
  6. It doesn't care, and still stays in the group

Expected behavior Bot should realise it has been added to a new group by someone who is not a super admin, and remove itself.

Environment Master branch with docker-compose

Commit id: 11fad48333ca81857754b44eb2afb19273364436 OS: Debian 8 (Jessie)

Qwerty-Space avatar Jul 03 '18 15:07 Qwerty-Space