feat(ui): 403,没权限

This commit is contained in:
吴汉强
2024-03-14 16:41:38 +08:00
parent 71611273d7
commit bf958d6113
16 changed files with 27 additions and 19 deletions

View File

@@ -28,7 +28,7 @@ func NewUserHandler(app *core.AppServer, db *gorm.DB) *UserHandler {
// List 用户列表
func (h *UserHandler) List(c *gin.Context) {
if err := utils.CheckPermission(c, h.db); err != nil {
resp.ERROR(c, types.NoPermission)
resp.NotPermission(c)
return
}