Skip to content

Commit 18455fe

Browse files
committed
temporarily disable clan role check
1 parent f3c472d commit 18455fe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/clanShop/clanShop.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import { ClanShopService } from './clanShop.service';
1010
import { APIError } from '../common/controller/APIError';
1111
import { APIErrorReason } from '../common/controller/APIErrorReason';
1212
import { ItemName } from '../clanInventory/item/enum/itemName.enum';
13-
import HasClanRights from '../clan/role/decorator/guard/HasClanRights';
14-
import { ClanBasicRight } from '../clan/role/enum/clanBasicRight.enum';
13+
// import HasClanRights from '../clan/role/decorator/guard/HasClanRights'; TODO: temporary disable
14+
// import { ClanBasicRight } from '../clan/role/enum/clanBasicRight.enum'; TODO: temporary disable
1515
import ApiResponseDescription from '../common/swagger/response/ApiResponseDescription';
1616
import ClanShopItemDto from './dto/ClanShopItem.dto';
1717

@@ -55,6 +55,7 @@ export class ClanShopController {
5555
*
5656
* Notice that the player must be in the same clan and it must have a basic right "Shop"
5757
*/
58+
// @HasClanRights([ClanBasicRight.SHOP]) TODO: temporary disable for testing. enable later
5859
@ApiResponseDescription({
5960
success: {
6061
status: 204,
@@ -63,7 +64,6 @@ export class ClanShopController {
6364
})
6465
@Post('buy')
6566
@DetermineClanId()
66-
@HasClanRights([ClanBasicRight.SHOP])
6767
@UniformResponse()
6868
async buyItem(
6969
@Body() body: { itemName: ItemName },

src/fleaMarket/fleaMarket.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ export class FleaMarketController {
8282
* Notice that if a FleaMarketItem has already "Shipping" status 403 will be returned.
8383
*
8484
*/
85+
// @HasClanRights([ClanBasicRight.SHOP]) TODO: Temporary disable for testing
8586
@ApiResponseDescription({
8687
success: {
8788
status: 204,
8889
},
8990
errors: [400, 401, 403, 404],
9091
})
9192
@Post('sell')
92-
@HasClanRights([ClanBasicRight.SHOP])
9393
@UniformResponse()
9494
async sell(
9595
@Body() sellFleaMarketItemDto: SellFleaMarketItemDto,

0 commit comments

Comments
 (0)