default roles + implement permissions for sections + settings areas output
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Collections.Generic;
|
||||
using zero.Core;
|
||||
using zero.Core.Api;
|
||||
using zero.Core.Entities;
|
||||
using zero.Core.Identity;
|
||||
|
||||
namespace zero.Web.Controllers
|
||||
{
|
||||
[ZeroAuthorize(Permissions.Sections.Settings, PermissionsValue.Read)]
|
||||
public class SettingsController : BackofficeController
|
||||
{
|
||||
private ISettingsApi Api { get; set; }
|
||||
@@ -13,11 +16,5 @@ namespace zero.Web.Controllers
|
||||
{
|
||||
Api = api;
|
||||
}
|
||||
|
||||
|
||||
public IActionResult GetAreas()
|
||||
{
|
||||
return Json(Api.GetAreas());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user