Skip to content

Commit

Permalink
Fix: 修复权限模块针对permission level验证部分在私聊中有问题的处理逻辑
Browse files Browse the repository at this point in the history
- 修复权限模块针对permission level验证部分在私聊中有问题的处理逻辑
  • Loading branch information
Ailitonia committed May 6, 2021
1 parent 55527e2 commit 71c49e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions omega_miya/utils/Omega_Permission/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ async def handle_plugin_permission(matcher: Matcher, bot: Bot, event: MessageEve
raise IgnoredException('没有群组命令权限')

# 检查权限等级 好友私聊跳过
if private_mode:
level_checker = True
else:
if matcher_permission_level:
level_checker = await check_permission_level(group_id=group_id, level=matcher_permission_level)
if matcher_permission_level:
if private_mode:
level_checker = True
else:
level_checker = False
level_checker = await check_permission_level(group_id=group_id, level=matcher_permission_level)
else:
level_checker = False

# 检查权限节点
if matcher_auth_node:
Expand Down

0 comments on commit 71c49e7

Please sign in to comment.