mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-11 06:29:28 +00:00
Feat: get file content via anonymous url
This commit is contained in:
1 parent
ea7f034332
commit
297b507ca7
8 files changed
+90
-21
No files matched your search
@@ -189,6 +189,18 @@ func addDefaultGroups() {
|
||||
util.Log().Panic("无法创建初始注册会员用户组, %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
err = nil
|
||||
_, err = GetGroupByID(3)
|
||||
// 未找到初始游客用户组时,则创建
|
||||
if gorm.IsRecordNotFoundError(err) {
|
||||
defaultAdminGroup := Group{
|
||||
Name: "游客",
|
||||
}
|
||||
if err := DB.Create(&defaultAdminGroup).Error; err != nil {
|
||||
util.Log().Panic("无法创建初始游客用户组, %s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func addDefaultUser() {
|
||||
|
||||
Reference in new issue
Block a user