mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
fix:访问项目权限
This commit is contained in:
@@ -34,7 +34,7 @@ class Api::V1::Users::Projects::ListService < ApplicationService
|
|||||||
|
|
||||||
private
|
private
|
||||||
def project_query_data
|
def project_query_data
|
||||||
if current_user.admin?
|
if current_user.admin? || @observe_user.id == current_user.id
|
||||||
projects = Project
|
projects = Project
|
||||||
else
|
else
|
||||||
projects = Project.visible
|
projects = Project.visible
|
||||||
|
|||||||
Reference in New Issue
Block a user