From 21b55eba83b3f07784790e8b02f0bc126ebcfa1d Mon Sep 17 00:00:00 2001 From: jasder Date: Wed, 12 May 2021 14:25:46 +0800 Subject: [PATCH] =?UTF-8?q?ADD=20=E7=89=88=E5=9D=97=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=8E=88=E4=BA=88=E5=B9=B3=E5=8F=B0=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/api_index_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/api_index_helper.rb b/app/helpers/api_index_helper.rb index 5138b303..f368f155 100644 --- a/app/helpers/api_index_helper.rb +++ b/app/helpers/api_index_helper.rb @@ -186,6 +186,7 @@ module ApiIndexHelper end def user_banned_permission current_user, forum_id + return true if current_user&.admin? if current_user.present? if forum_id.present? user_forum_moder = ForumModerator.where(forum_section_id: forum_id,user_id: current_user.id).exists?