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

Bug: 沙盒无法正常更改用户权限等级 #136

Closed
FlandreCirno opened this issue Mar 26, 2023 · 1 comment
Closed

Bug: 沙盒无法正常更改用户权限等级 #136

FlandreCirno opened this issue Mar 26, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@FlandreCirno
Copy link

Describe the bug

在更新沙盒用户等级后,用户等级无法正确更新,刷新页面后权限会恢复到1

Steps to reproduce

创建模板项目,进入沙盒,创建用户,点击加号修改用户权限等级

Expected behavior

用户等级应当正确更改、保存且反应在可以使用更高级的指令

Screenshots

No response

Versions

OS: Windows 10
Platform: Sandbox
Node version: 18.15.0
Koishi version: 4.12.1

Additional context

控制台报错信息
client.js:1 Uncaught (in promise) Error: UNIQUE constraint failed: binding.pid, binding.platform
at f.handleError (E:\Workspace\Koishi\Test\test\node_modules@minatojs\sql.js\dist\sql-wasm.js:91:290)
at c.step (E:\Workspace\Koishi\Test\test\node_modules@minatojs\sql.js\dist\sql-wasm.js:81:394)
at c.run (E:\Workspace\Koishi\Test\test\node_modules@minatojs\sql.js\dist\sql-wasm.js:84:116)
at E:\Workspace\Koishi\Test\test\node_modules@minatojs\driver-sqlite\lib\index.js:365:80
at #exec (E:\Workspace\Koishi\Test\test\node_modules@minatojs\driver-sqlite\lib\index.js:339:20)
at #run (E:\Workspace\Koishi\Test\test\node_modules@minatojs\driver-sqlite\lib\index.js:365:41)
at #create (E:\Workspace\Koishi\Test\test\node_modules@minatojs\driver-sqlite\lib\index.js:394:46)
at SQLiteDriver.create (E:\Workspace\Koishi\Test\test\node_modules@minatojs\driver-sqlite\lib\index.js:302:62)
at Executable.execute (E:\Workspace\Koishi\Test\test\node_modules@minatojs\core\lib\index.cjs:384:34)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

@FlandreCirno FlandreCirno added the bug Something isn't working label Mar 26, 2023
@shigma
Copy link
Member

shigma commented Mar 26, 2023

已定位问题。

@shigma shigma transferred this issue from koishijs/koishi Mar 26, 2023
@shigma shigma closed this as completed in b0f91d8 Mar 27, 2023
CyanChanges pushed a commit to CyanForks/webui that referenced this issue Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants