增加view里面判断权限的方法

This commit is contained in:
2018-08-23 22:34:24 +08:00
parent d2b0ea14a1
commit e6245d3a37
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ namespace COMCMS.Web.Common
if (string.IsNullOrEmpty(my.Roles.Powers))
return false;
IList<AdminMenuEvent> listevents = JsonConvert.DeserializeObject<IList<AdminMenuEvent>>(my.Roles.Powers);
if (listevents == null || listevents.Count > 0)
if (listevents == null || listevents.Count <= 0)
{
return false;
}