Skip to content

Commit

Permalink
refactor: 불분명한 의미의 변수명 수정 #163
Browse files Browse the repository at this point in the history
  • Loading branch information
koomchang committed Nov 23, 2024
1 parent 441969d commit 8b5fb07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/course/guards/CoursePermissionGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export class CoursePermissionGuard implements CanActivate {
const courseId = Number(request.params.id);
const userId = Number(request.user.userId);

const course = await this.courseService.getCourseOwnerId(courseId);
if (course !== userId) {
const courseOwnerId = await this.courseService.getCourseOwnerId(courseId);
if (courseOwnerId !== userId) {
throw new CoursePermissionException(courseId);
}
return true;
Expand Down

0 comments on commit 8b5fb07

Please sign in to comment.