增加后台前端页面判断按钮权限

This commit is contained in:
2018-08-23 16:06:25 +08:00
parent d34106b512
commit d2b0ea14a1
5 changed files with 74 additions and 11 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ namespace COMCMS.Web.Common
if (!string.IsNullOrEmpty(my.Roles.Powers))
{
IList<AdminMenuEvent> listevents = JsonConvert.DeserializeObject<IList<AdminMenuEvent>>(my.Roles.Powers);
if (listevents != null && listevents.Count <= 0)
if (listevents != null && listevents.Count > 0)
{
if (!string.IsNullOrEmpty(_menuKey) && !string.IsNullOrEmpty(_eventKey))
{