mirror of
https://github.com/goharbor/harbor.git
synced 2024-08-20 02:52:49 +02:00
change dao/porject.go file
This commit is contained in:
parent
cf08ed8437
commit
36e6f5f732
|
@ -181,7 +181,7 @@ func SearchProjects(userID int) ([]models.Project, error) {
|
||||||
sql := `select distinct p.project_id, p.name, p.public
|
sql := `select distinct p.project_id, p.name, p.public
|
||||||
from project p
|
from project p
|
||||||
left join project_member pm on p.project_id = pm.project_id
|
left join project_member pm on p.project_id = pm.project_id
|
||||||
where (pm.user_id = ? or p.pulic=1) and p.deleted = 0`
|
where (pm.user_id = ? or p.pulic = 1) and p.deleted = 0`
|
||||||
|
|
||||||
var projects []models.Project
|
var projects []models.Project
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user