Merge pull request #1470 from sbwalker/dev

bug fixes
This commit is contained in:
Shaun Walker
2021-06-11 17:03:57 -04:00
committed by GitHub
3 changed files with 29 additions and 26 deletions

View File

@ -52,7 +52,7 @@ namespace Oqtane.Controllers
public Role Get(int id)
{
var role = _roles.GetRole(id);
if (role != null && role.SiteId == _alias.SiteId)
if (role != null && (role.SiteId == _alias.SiteId || User.IsInRole(RoleNames.Host)))
{
return role;
}