fixed 查询项目时当前用户包含私有

This commit is contained in:
xxq250 2023-05-15 22:58:06 +08:00
parent 7fdf1af411
commit e4e0b0ce57
1 changed files with 1 additions and 1 deletions

View File

@ -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