Browse Source

fix:访问项目权限

pull/347/head
yystopf 1 year ago
parent
commit
f66e6a7774
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/api/v1/users/projects/list_service.rb

+ 1
- 1
app/services/api/v1/users/projects/list_service.rb 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


Loading…
Cancel
Save