-
-
Notifications
You must be signed in to change notification settings - Fork 295
Open
Labels
bugBUGBUG
Description
Describe the bug
同时启用 koishi-plugin-dialogue 和 koishi-plugin-dialogue-context,权限等级1的用户都可以创建问答等
关闭 dialogue-context 后重启,没有问题
Steps to reproduce
同上
Expected behavior
应遵守权限
Screenshots
No response
Versions
- Koishi version: 4.18.9
- k-p-dialogue: 4.1.3
Additional context
调用 command 时,如果没有 authority,会有默认设置
| this.config.permissions ??= [`authority:${config?.authority ?? 1}`] |
可能导致下列函数中的判断出问题:
koishi/packages/core/src/permission.ts
Line 132 in 057c18a
| async test(names: Iterable<string>, session: Partial<Session> = {}, cache: Map<string, Promise<boolean>> = new Map()) { |

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBUGBUG