mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
新增:项目加载排除id=0
This commit is contained in:
@@ -90,6 +90,8 @@ class Project < ApplicationRecord
|
||||
include ProjectOperable
|
||||
include Dcodes
|
||||
|
||||
default_scope {where.not(id: 0)}
|
||||
|
||||
# common:开源托管项目
|
||||
# mirror:普通镜像项目,没有定时同步功能
|
||||
# sync_mirror:同步镜像项目,有系统定时同步功能,且用户可手动同步操作
|
||||
|
||||
Reference in New Issue
Block a user