Azuma Daisuke

Results 15 comments of Azuma Daisuke

I have the same feeling

https://doc.getqor.com/chapter2/theme.html Customizing Views

should be a [][]string, key and value for select many

你需要给resource指定具体的权限 Admin.AddResource(&models.News{}, &admin.Config{Name: "Sport", Priority: 1, Menu: []string{"新闻"}, Permission: roles.Deny(roles.CRUD, "locale_reader")})

你的程序有点复杂,建议你在roles.Register方法里debug一下,看看每次用户是哪个role,一个用户只能命中一个role