checks.py: Fix check for helpers with staff perms
@@ -30,11 +30,9 @@ def is_staff_app(role: str):
def check_staff(bot: 'Kurisu', role: str, user_id: int) -> bool:
- if bot.configuration.helpers.get(user_id):
- position = StaffRank.Helper
- else:
position = bot.configuration.staff.get(user_id)
-
+ if not position and bot.configuration.helpers.get(user_id):
+ position = StaffRank.Helper
if position is None:
return False
return position <= StaffRank[role]
