|
|
@ -32,12 +32,14 @@ class UsersController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
before_filter :require_admin, :except => [:show, :index, :search, :tag_save, :tag_saveEx,:user_projects, :user_newfeedback, :user_comments, :watch_bids, :watch_contests, :info,
|
|
|
|
before_filter :require_admin, :except => [:show, :index, :search, :tag_save, :tag_saveEx,:user_projects, :user_newfeedback, :user_comments, :watch_bids, :watch_contests, :info,
|
|
|
|
:user_watchlist, :user_fanslist,:update, :user_courses, :user_homeworks, :watch_projects, :show_score, :topic_score_index, :project_score_index,
|
|
|
|
:user_watchlist, :user_fanslist,:update, :user_courses, :user_homeworks, :watch_projects, :show_score, :topic_score_index, :project_score_index,
|
|
|
|
:activity_score_index, :influence_score_index, :score_index]
|
|
|
|
:activity_score_index, :influence_score_index, :score_index,:show_new_score, :topic_new_score_index, :project_new_score_index,
|
|
|
|
|
|
|
|
:activity_new_score_index, :influence_new_score_index, :score_new_index]
|
|
|
|
#edit has been deleted by huang, 2013-9-23
|
|
|
|
#edit has been deleted by huang, 2013-9-23
|
|
|
|
before_filter :find_user, :only => [:user_fanslist, :user_watchlist, :show, :edit, :update, :destroy, :edit_membership, :user_courses,
|
|
|
|
before_filter :find_user, :only => [:user_fanslist, :user_watchlist, :show, :edit, :update, :destroy, :edit_membership, :user_courses,
|
|
|
|
:user_homeworks, :destroy_membership, :user_activities, :user_projects, :user_newfeedback, :user_comments,
|
|
|
|
:user_homeworks, :destroy_membership, :user_activities, :user_projects, :user_newfeedback, :user_comments,
|
|
|
|
:watch_bids, :watch_contests, :info, :watch_projects, :show_score, :topic_score_index, :project_score_index,
|
|
|
|
:watch_bids, :watch_contests, :info, :watch_projects, :show_score, :topic_score_index, :project_score_index,
|
|
|
|
:activity_score_index, :influence_score_index, :score_index]
|
|
|
|
:activity_score_index, :influence_score_index, :score_index,:show_new_score, :topic_new_score_index, :project_new_score_index,
|
|
|
|
|
|
|
|
:activity_new_score_index, :influence_new_score_index, :score_new_index]
|
|
|
|
before_filter :auth_user_extension, only: :show
|
|
|
|
before_filter :auth_user_extension, only: :show
|
|
|
|
accept_api_auth :index, :show, :create, :update, :destroy,:tag_save , :tag_saveEx
|
|
|
|
accept_api_auth :index, :show, :create, :update, :destroy,:tag_save , :tag_saveEx
|
|
|
|
|
|
|
|
|
|
|
@ -94,6 +96,10 @@ class UsersController < ApplicationController
|
|
|
|
def show_score
|
|
|
|
def show_score
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def show_new_score
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
|
|
##added by fq
|
|
|
|
##added by fq
|
|
|
@ -767,7 +773,25 @@ class UsersController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
|
|
|
|
def topic_new_score_index
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def project_new_score_index
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def activity_new_score_index
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def influence_new_score_index
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def score_new_index
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
def find_user
|
|
|
|
def find_user
|
|
|
|