mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: options to disable preview in file sharing
This commit is contained in:
@@ -253,6 +253,7 @@ func (user *User) SetPassword(password string) error {
|
||||
// TODO 测试
|
||||
func NewAnonymousUser() *User {
|
||||
user := User{}
|
||||
user.Policy.Type = "anonymous"
|
||||
user.Group, _ = GetGroupByID(3)
|
||||
return &user
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user