fixed issue#314
This commit is contained in:
parent
081a8e9825
commit
ab5d8853b5
|
@ -148,9 +148,10 @@ class UsersController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
# added by fq
|
||||
# added by fq, modify by nyan
|
||||
def user_courses
|
||||
@membership = @user.memberships.all(:conditions => Project.visible_condition(User.current)).reverse
|
||||
@membership = @user.memberships.all(:conditions => Project.visible_condition(User.current))
|
||||
@membership.sort! {|older, newer| newer.created_on <=> older.created_on }
|
||||
case params[:type]
|
||||
when "2"
|
||||
#@membership = @user.memberships.all(:conditions => Project.visible_condition(User.current))
|
||||
|
|
Loading…
Reference in New Issue