diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 93626b86b..089960e76 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -26,7 +26,7 @@ class CoursesController < ApplicationController def join if User.current.logged? course = Course.find_by_id params[:object_id] - if course + unless course @state = 4 else unless (allow_join(course) && User.current.member_of_course?(course)) diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 3d2b7b0f0..fd0195833 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,11 +1,19 @@ <% if User.current.id == @user.id %>