Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin-teach 中编辑本上下文的行为不受 base 选项控制 #208

Closed
dragon-fish opened this issue Apr 6, 2021 · 0 comments
Closed
Assignees
Labels
bug BUG

Comments

@dragon-fish
Copy link
Member

dragon-fish commented Apr 6, 2021

Describe the bug
RT

To Reproduce
假设 options.authority.base 设定为 2options.authority.context 设定为 3

  • 给群员 小明 分配 2 级权限:小明无法新增或编辑仅在本群生效的问答
  • 给群员 小明 分配 3 级权限:小明可以新增或编辑仅在本群生效的问答,但是也可以编辑非本群生效的问答

Expected behavior
当用户权限等于 base 设定时,可以为本上下文新增问答,可以编辑本上下文和作者为自己的问答

Screenshots

Versions

  • OS: Windows Server 2019
  • Node Version: 15.4.0
  • CoolQ Version: -
  • CQHTTP Version: -
  • Koishi Version: 3.6.1
  • plugin-teach: 2.1.1

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

2 participants