Feat: options to disable preview in file sharing

This commit is contained in:
HFO4
2020-01-29 11:03:09 +08:00
parent 1ff4d59978
commit 68704f8646
7 changed files with 47 additions and 14 deletions

View File

@@ -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
}