Skip to content

Commit 98c07b7

Browse files
committed
location.controller: Removed AuthGuard from findAll endpoint
1 parent f655eca commit 98c07b7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/location/location.controller.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ export class LocationController {
3636
* Get a list of locations
3737
*/
3838
@Get()
39-
@UseGuards(JwtAuthGuard, RolesGuard)
40-
@Roles(UserRole.ADMIN, UserRole.MANAGER)
4139
async findAll(@Query() { limit, offset }: FindAllEntitiesDto = {}) {
4240
const locations = await this.locationService.findAllLocations(limit, offset);
4341
return locations.map((location) => new LocationEntity(location));

src/user/user.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import { getErrorMessage } from "../utils/get-error-message";
2020
import { UserEntity } from "./user.dto";
2121
import { UserService } from "./user.service";
2222

23-
@UseGuards(JwtAuthGuard)
2423
@ApiTags("User")
2524
@Controller("user")
2625
@UseInterceptors(ClassSerializerInterceptor)
26+
@UseGuards(JwtAuthGuard)
2727
export class UserController {
2828
constructor(private userService: UserService) {}
2929

0 commit comments

Comments
 (0)