mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 10:12:59 +00:00
权限过滤器
This commit is contained in:
@@ -18,7 +18,7 @@ func (c *Index) Index(r *ghttp.Request) {
|
||||
//菜单列表
|
||||
var menuList g.List
|
||||
if userInfo != nil {
|
||||
userId := gconv.Int64(userInfo["id"])
|
||||
userId := gconv.Int(userInfo["id"])
|
||||
delete(userInfo, "user_password")
|
||||
//获取用户角色信息
|
||||
roles, err := user_service.GetAdminRole(userId)
|
||||
|
||||
Reference in New Issue
Block a user