diff --git a/backend/blueprints/course/__init__.py b/backend/blueprints/course/__init__.py index e42aac2..b2a653c 100644 --- a/backend/blueprints/course/__init__.py +++ b/backend/blueprints/course/__init__.py @@ -224,7 +224,7 @@ def course_info(course_uuid): # Only allow owner or admin to query info for course that is not published or is pending if not selected_course.isActive or selected_course.publishedStatus != int(PublishedStatus.APPROVED): if g.get("is_authed"): - if g.current_user.role == int(UserRole.ADMIN) or g.current_user.id == selected_course.authorID + if g.current_user.role == int(UserRole.ADMIN) or g.current_user.id == selected_course.authorID: pass else: return jsonify({'message': 'The course does not exist.'}), 404 diff --git a/backend/uploads/learn-with-us.jpg b/backend/uploads/learn-with-us.jpg new file mode 100644 index 0000000..1438207 Binary files /dev/null and b/backend/uploads/learn-with-us.jpg differ