mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修改bug
This commit is contained in:
@@ -100,7 +100,7 @@ class Project < ApplicationRecord
|
||||
end
|
||||
|
||||
def self.list_user_projects(user_id)
|
||||
user_not_show = Project.joins(:members).where("projects.is_public = ? and (projects.user_id != ? or members.user_id != ?)", false, user_id,user_id).pluck(:id).uniq
|
||||
user_not_show = Project.joins(:members).where("projects.is_public = ? and projects.user_id != ? and members.user_id != ?", false, user_id,user_id).pluck(:id).uniq
|
||||
Project.where.not(id: user_not_show)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user