fix:访问项目权限
This commit is contained in:
parent
435f458f6a
commit
f66e6a7774
|
@ -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…
Reference in New Issue