parent
fb666e8c35
commit
3a4b77e837
|
@ -34,7 +34,7 @@ namespace Bootstrap.DataAccess.MongoDB
|
||||||
}).Distinct().ToList();
|
}).Distinct().ToList();
|
||||||
|
|
||||||
var menus = DbManager.Menus.Find(FilterDefinition<BootstrapMenu>.Empty).ToList()
|
var menus = DbManager.Menus.Find(FilterDefinition<BootstrapMenu>.Empty).ToList()
|
||||||
.Where(m => roles.Any(r => r.RoleName.Equals("Administrators", StringComparison.OrdinalIgnoreCase) || r.Menus.Any(rm => rm.Equals(m.Url, StringComparison.OrdinalIgnoreCase))))
|
.Where(m => roles.Any(r => r.RoleName.Equals("Administrators", StringComparison.OrdinalIgnoreCase) || r.Menus.Any(rm => rm.Equals(m.Id, StringComparison.OrdinalIgnoreCase))))
|
||||||
.ToList();
|
.ToList();
|
||||||
menus.ForEach(m =>
|
menus.ForEach(m =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue