From 23128fff7a2b19f7600559231ce3916cd3bc193e Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 29 Nov 2019 11:34:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/users/shixun_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/users/shixun_service.rb b/app/services/users/shixun_service.rb index aeaac6a2c..9460d3a88 100644 --- a/app/services/users/shixun_service.rb +++ b/app/services/users/shixun_service.rb @@ -41,6 +41,8 @@ class Users::ShixunService def user_policy_filter(relations) # 只有自己或者管理员才有过滤筛选及查看全部状态下实训功能 + Rails.logger.info("self_or_admin?: #{self_or_admin?}") + Rails.logger.info("user: #{user.id}") if self_or_admin? relations = relations.where.not(status: -1) status_filter(relations)