message: Configure roles course
diff: @@ -20,6 +20,7 @@ export class CourseController {
  @HttpCode(200)
  @ApiOperation({ title: 'Get Courses', description: 'Get all Courses' })
  @ApiOkResponse({ type: CourseDTO, isArray: true, description: 'All Courses' })
  + @UseGuards(RoleGuard)
  public async getAll(): Promise<CourseDTO[]> {
  return this.mapper.toDtoList(await this.service.getAll());
  }
  @@ -29,6 +30,7 @@ export class CourseController {
  @ApiOkResponse({ type: CourseDTO })
  @ApiImplicitQuery({ name: 'id', type: Number, required: true, description: 'Course id' })
  @ApiOperation({ title: 'Find Course by id', description: 'Find Course by id' })
  + @UseGuards(RoleGuard)
  public async findById(@Param('id') id: CourseDTO['id']): Promise<CourseDTO> {
  return this.mapper.toDto(await this.service.findById(id));
  }
  