mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
修改分类数量显示bug
This commit is contained in:
@@ -101,4 +101,9 @@ class Project < ApplicationRecord
|
||||
str
|
||||
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
|
||||
Project.where.not(id: user_not_show)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user