From f86d25d5143847692779dd4e81b7e47d9b25376e Mon Sep 17 00:00:00 2001
From: sunty <suntianyu0923@163.com>
Date: 星期二, 30 七月 2019 11:16:15 +0800
Subject: [PATCH] fix delete dbtable add GetTotalFromDb and EsReq

---
 controllers/sysMenu.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/controllers/sysMenu.go b/controllers/sysMenu.go
index 1ff0000..f629b5d 100644
--- a/controllers/sysMenu.go
+++ b/controllers/sysMenu.go
@@ -27,7 +27,7 @@
 	user := (*authDriver).User(c)
 	logger.Debug("current:",user)
 	if user !=nil {
-		menus := user.(map[string]interface{})["sysMenus"]
+		menus := user.(map[string]interface{})["permissions"]
 		util.ResponseFormat(c,code.Success,menus)
 	} else {
 		util.ResponseFormat(c,code.NotLogin,"")

--
Gitblit v1.8.0