From 41e6d6ab09986f124c50a59995dff7989619f31c Mon Sep 17 00:00:00 2001 From: xxq250 Date: Tue, 16 May 2023 09:20:00 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E7=94=A8=E6=88=B7=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E7=A7=81=E6=9C=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/api/v1/users/projects/list_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/api/v1/users/projects/list_service.rb b/app/services/api/v1/users/projects/list_service.rb index 47457c58c..d73188a0d 100644 --- a/app/services/api/v1/users/projects/list_service.rb +++ b/app/services/api/v1/users/projects/list_service.rb @@ -34,7 +34,7 @@ class Api::V1::Users::Projects::ListService < ApplicationService private def project_query_data - if current_user.admin? + if current_user.admin? || observe_user.id == current_user.id projects = Project else projects = Project.visible