fix: 修复权限加入问题

This commit is contained in:
lixiangwuxian
2024-10-20 03:56:35 +08:00
parent 9cbcc3227f
commit 67cff69184
3 changed files with 12 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ import (
)
func init() {
handler.RegisterFrontMatchHandler("用户权限", setUserLevel, constants.LEVEL_ROOT)
handler.RegisterFrontMatchHandler("用户权限", setUserLevel, constants.LEVEL_USER)
handler.RegisterHelpInform("用户权限", "用户权限 [用户] [权限] 设置用户权限。允许的权限有:根用户、管理员、信任、用户、拉黑")
}