improve Profile ability to use Settings

This commit is contained in:
sbwalker
2025-09-21 11:12:07 -04:00
parent 382a8eb8f3
commit 7fed6bb93a
3 changed files with 58 additions and 7 deletions

View File

@ -308,7 +308,7 @@ namespace Oqtane.Controllers
// GET: api/<controller>/entitynames
[HttpGet("entitynames")]
[Authorize(Roles = RoleNames.Host)]
[Authorize(Roles = RoleNames.Admin)]
public IEnumerable<string> GetEntityNames()
{
return _settings.GetEntityNames();
@ -316,7 +316,7 @@ namespace Oqtane.Controllers
// GET: api/<controller>/entityids?entityname=x
[HttpGet("entityids")]
[Authorize(Roles = RoleNames.Host)]
[Authorize(Roles = RoleNames.Admin)]
public IEnumerable<int> GetEntityIds(string entityName)
{
return _settings.GetEntityIds(entityName);