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