File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ import { getErrorMessage } from "../utils/get-error-message";
2020import { UserEntity } from "./user.dto" ;
2121import { UserService } from "./user.service" ;
2222
23- @UseGuards ( JwtAuthGuard )
2423@ApiTags ( "User" )
2524@Controller ( "user" )
2625@UseInterceptors ( ClassSerializerInterceptor )
26+ @UseGuards ( JwtAuthGuard )
2727export class UserController {
2828 constructor ( private userService : UserService ) { }
2929
You can’t perform that action at this time.
0 commit comments