mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:03:27 +08:00
【优化】优化代码生成器未主动设置颗粒化权限,导致部分controller使用颗粒化权限控制的问题。
This commit is contained in:
@@ -40,7 +40,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
[RequiredErrorForAdmin]
|
||||
[Authorize]
|
||||
[Authorize(Permissions.Name)]
|
||||
public class {{ModelClassName}}Controller : ControllerBase
|
||||
{
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
[RequiredErrorForAdmin]
|
||||
[Authorize]
|
||||
[Authorize(Permissions.Name)]
|
||||
public class CoreCmsPrinterController : ControllerBase
|
||||
{
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
[RequiredErrorForAdmin]
|
||||
[Authorize]
|
||||
[Authorize(Permissions.Name)]
|
||||
public class CoreCmsUserServicesOrderController : ControllerBase
|
||||
{
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
[RequiredErrorForAdmin]
|
||||
[Authorize]
|
||||
[Authorize(Permissions.Name)]
|
||||
public class CoreCmsOrderDistributionModelController : ControllerBase
|
||||
{
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
[RequiredErrorForAdmin]
|
||||
[Authorize]
|
||||
[Authorize(Permissions.Name)]
|
||||
public class CoreCmsAppUpdateLogController : ControllerBase
|
||||
{
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
[RequiredErrorForAdmin]
|
||||
[Authorize]
|
||||
[Authorize(Permissions.Name)]
|
||||
public class SysUserOperationLogController : ControllerBase
|
||||
{
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
[Route("api/[controller]/[action]")]
|
||||
[ApiController]
|
||||
[RequiredErrorForAdmin]
|
||||
[Authorize]
|
||||
[Authorize(Permissions.Name)]
|
||||
public class WeChatTransactionComponentBrandAuditController : ControllerBase
|
||||
{
|
||||
private readonly IWebHostEnvironment _webHostEnvironment;
|
||||
|
||||
Reference in New Issue
Block a user