Browse Source
Merge pull request #198 from EasyAbp/fix-result-appservice-auth
Fix authorization in `FlashSaleResultAppService`
pull/200/head
Super
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
2 deletions
-
plugins/FlashSales/src/EasyAbp.EShop.Plugins.FlashSales.Application/EasyAbp/EShop/Plugins/FlashSales/FlashSaleResults/FlashSaleResultAppService.cs
|
|
@ -24,7 +24,10 @@ public class FlashSaleResultAppService : |
|
|
{ |
|
|
{ |
|
|
var flashSaleResult = await GetEntityByIdAsync(id); |
|
|
var flashSaleResult = await GetEntityByIdAsync(id); |
|
|
|
|
|
|
|
|
await CheckMultiStorePolicyAsync(flashSaleResult.StoreId, GetPolicyName); |
|
|
if (GetPolicyName is not null) |
|
|
|
|
|
{ |
|
|
|
|
|
await CheckMultiStorePolicyAsync(flashSaleResult.StoreId, GetPolicyName); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (flashSaleResult.UserId != CurrentUser.Id) |
|
|
if (flashSaleResult.UserId != CurrentUser.Id) |
|
|
{ |
|
|
{ |
|
|
@ -36,7 +39,10 @@ public class FlashSaleResultAppService : |
|
|
|
|
|
|
|
|
public override async Task<PagedResultDto<FlashSaleResultDto>> GetListAsync(FlashSaleResultGetListInput input) |
|
|
public override async Task<PagedResultDto<FlashSaleResultDto>> GetListAsync(FlashSaleResultGetListInput input) |
|
|
{ |
|
|
{ |
|
|
await CheckMultiStorePolicyAsync(input.StoreId, GetListPolicyName); |
|
|
if (GetListPolicyName is not null) |
|
|
|
|
|
{ |
|
|
|
|
|
await CheckMultiStorePolicyAsync(input.StoreId, GetListPolicyName); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return await base.GetListAsync(input); |
|
|
return await base.GetListAsync(input); |
|
|
} |
|
|
} |
|
|
|