Skip to content

Commit 15f19c4

Browse files
committed
fix: remove SuperAdminAuthGuard from GET /partner/:name
- Removed @UseGuards(SuperAdminAuthGuard) decorator from GET :name endpoint - Updated ApiOperation description to indicate this is a public endpoint - Partner config data (logos, websites, social links) is non-sensitive - Other endpoints (POST, GET all, PATCH) remain admin-only Closes #1042
1 parent 7dea417 commit 15f19c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/partner/partner.controller.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ export class PartnerController {
3636
}
3737

3838
@Get(':name')
39-
@ApiOperation({ description: 'Returns profile data for a partner' })
40-
@UseGuards(SuperAdminAuthGuard)
39+
@ApiOperation({ description: 'Returns profile data for a partner (public endpoint)' })
4140
@ApiParam({ name: 'name', description: 'Gets partner by name' })
4241
async getPartner(@Param() params: PartnerParamDto): Promise<IPartner> {
4342
const partnerResponse = await this.partnerService.getPartnerWithPartnerFeaturesByName(params.name);

0 commit comments

Comments
 (0)