|
|
@ -284,7 +284,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
@is_admin = @user_course_identity < Course::PROFESSOR
|
|
|
|
@is_admin = @user_course_identity < Course::PROFESSOR
|
|
|
|
|
|
|
|
|
|
|
|
@applications= CourseMessage.unhandled_join_course_requests_by_course(@course)
|
|
|
|
@applications = @is_admin ? CourseMessage.unhandled_join_course_requests_by_course(@course) : CourseMessage.none
|
|
|
|
|
|
|
|
|
|
|
|
page = params[:page] || 1
|
|
|
|
page = params[:page] || 1
|
|
|
|
limit = params[:limit] || 20
|
|
|
|
limit = params[:limit] || 20
|
|
|
|