增加view里面判断权限的方法
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user