导入资源不能用的问题

hjq_mail
huang 9 years ago
parent 004c48b456
commit b1e0618742

@ -2894,8 +2894,7 @@ class UsersController < ApplicationController
# 导入资源
def import_resources
# 别人的资源库是没有权限去看的
@user = User.find_by_login(params[:id])
if User.current != @user
if User.current.id != params[:id].to_i
render_403
return
end

Loading…
Cancel
Save