From f727e8f94e595eb643f9a692749fd29557d62ee8 Mon Sep 17 00:00:00 2001 From: xiaoxiaoqiong Date: Sat, 11 Jun 2022 12:35:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=A4=B4=E5=83=8F=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=8F=96=E6=B6=88=E6=9D=83=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 056909f64..e7cf0e142 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -100,7 +100,7 @@ class UsersController < ApplicationController def get_image return render_not_found unless @user = User.find_by(login: params[:id]) || User.find_by_id(params[:id]) - return render_forbidden unless User.current.logged? && (current_user&.admin? || current_user.id == @user.id) + # return render_forbidden unless User.current.logged? && (current_user&.admin? || current_user.id == @user.id) redirect_to Rails.application.config_for(:configuration)['platform_url'] + "/" + url_to_avatar(@user).to_s end