只有admin用户可以修改个人简介
This commit is contained in:
parent
7081fc9975
commit
8247a29b85
|
@ -45,7 +45,7 @@ class UsersController < ApplicationController
|
||||||
:activity_new_score_index, :influence_new_score_index, :score_new_index,:update_score,:user_activities,:user_projects_index,
|
:activity_new_score_index, :influence_new_score_index, :score_new_index,:update_score,:user_activities,:user_projects_index,
|
||||||
:user_courses4show,:user_projects4show,:user_course_activities,:user_project_activities,:user_feedback4show,:user_visitorlist,
|
:user_courses4show,:user_projects4show,:user_course_activities,:user_project_activities,:user_feedback4show,:user_visitorlist,
|
||||||
:user_resource,:user_resource_create,:user_resource_delete,:rename_resource,:search_user_course,:add_exist_file_to_course,
|
:user_resource,:user_resource_create,:user_resource_delete,:rename_resource,:search_user_course,:add_exist_file_to_course,
|
||||||
:search_user_project,:resource_preview,:resource_search,:add_exist_file_to_project,:user_messages]
|
:search_user_project,:resource_preview,:resource_search,:add_exist_file_to_project,:user_messages,:edit_brief_introduction]
|
||||||
#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,
|
||||||
|
@ -1311,47 +1311,6 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# added by bai
|
|
||||||
def topic_score_index
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
def project_score_index
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
def activity_score_index
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
def influence_score_index
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
def score_index
|
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
def update_score
|
def update_score
|
||||||
@user = User.find(params[:id])
|
@user = User.find(params[:id])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue