Fix issue saving permissions associated to global roles

This commit is contained in:
Shaun Walker
2019-08-30 10:45:44 -04:00
parent 88a08c8863
commit c651dedffd
4 changed files with 16 additions and 2 deletions

View File

@ -38,6 +38,19 @@ namespace Oqtane.Repository
}
}
public IEnumerable<Role> GetRoles(int SiteId, bool IncludeGlobalRoles)
{
try
{
return db.Role.Where(item => item.SiteId == SiteId || item.SiteId == null).ToList();
}
catch
{
throw;
}
}
public Role AddRole(Role Role)
{
try