allow host to view tenant information in Site Settings

This commit is contained in:
Shaun Walker
2021-06-06 10:36:13 -04:00
parent 357ef09dd1
commit 900ea8cfbc
2 changed files with 50 additions and 16 deletions

View File

@ -23,7 +23,7 @@ namespace Oqtane.Controllers
// GET: api/<controller>
[HttpGet]
[Authorize(Roles = RoleNames.Admin)]
[Authorize(Roles = RoleNames.Host)]
public IEnumerable<Tenant> Get()
{
return _tenants.GetTenants();
@ -31,7 +31,7 @@ namespace Oqtane.Controllers
// GET api/<controller>/5
[HttpGet("{id}")]
[Authorize(Roles = RoleNames.Admin)]
[Authorize(Roles = RoleNames.Host)]
public Tenant Get(int id)
{
return _tenants.GetTenant(id);