From e4e0b0ce57eb40545d9fb27470924f2d979501e0 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Mon, 15 May 2023 22:58:06 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E6=9F=A5=E8=AF=A2=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=97=B6=E5=BD=93=E5=89=8D=E7=94=A8=E6=88=B7=E5=8C=85=E5=90=AB?= =?UTF-8?q?=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 8b3bffef..3782a878 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