Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
f5b528dc4d
|
@ -38,7 +38,7 @@ class CoursesService
|
||||||
if name.blank?
|
if name.blank?
|
||||||
raise 'sumbit empty'
|
raise 'sumbit empty'
|
||||||
end
|
end
|
||||||
@courses = courses_all.visible
|
@courses = courses_all.visible(current_user)
|
||||||
if params[:name].present?
|
if params[:name].present?
|
||||||
@courses_all = @courses.like(params[:name])
|
@courses_all = @courses.like(params[:name])
|
||||||
else
|
else
|
||||||
|
|
|
@ -193,7 +193,6 @@ class UsersService
|
||||||
@current_user.save
|
@current_user.save
|
||||||
#raise @current_user.errors.full_message
|
#raise @current_user.errors.full_message
|
||||||
#return @current_user
|
#return @current_user
|
||||||
|
|
||||||
else
|
else
|
||||||
raise 'wrong password'
|
raise 'wrong password'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue