mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge branch 'standalone_develop' into pre_trustie_server
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user