Skip to content

Commit bf6f7f1

Browse files
committed
Add role moderator to getAllCommitments API
1 parent e51016c commit bf6f7f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/rest/commitments/v1/controller/commitment.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export class CommitmentController {
4141
description: 'Returns the found Commitments if any',
4242
type: PaginatedCommitmentResponse,
4343
})
44-
@FirebaseGuard(UserRole.ADMIN)
44+
@FirebaseGuard(UserRole.MODERATOR, UserRole.ADMIN)
4545
async getAllCommitments(@Query() pagination: PaginationDto, @Query('tags') tags: string[]): Promise<IPaginatedList<ICommitment>> {
4646
return this.cqrsHandler.fetch(ListCommitmentsQuery, { ...pagination, filter: { tags } });
4747
}

0 commit comments

Comments
 (0)