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