tracked down where autojoin flag comes from
This commit is contained in:
+2
-4
@@ -107,6 +107,7 @@ func VIUUserFromUser(ctx context.Context, target *VIUUser, u *database.User) err
|
|||||||
target.Options.HidePhone = ci.PrivatePhone
|
target.Options.HidePhone = ci.PrivatePhone
|
||||||
target.Options.HideFax = ci.PrivateFax
|
target.Options.HideFax = ci.PrivateFax
|
||||||
target.Options.HideEmail = ci.PrivateEmail
|
target.Options.HideEmail = ci.PrivateEmail
|
||||||
|
target.Options.AutoJoin = u.VerifyEMail
|
||||||
|
|
||||||
// Load user preferences.
|
// Load user preferences.
|
||||||
prefs, err := u.Prefs(ctx)
|
prefs, err := u.Prefs(ctx)
|
||||||
@@ -129,9 +130,6 @@ func VIUUserFromUser(ctx context.Context, target *VIUUser, u *database.User) err
|
|||||||
target.Options.OptOut = flags.Get(database.UserFlagMassMailOptOut)
|
target.Options.OptOut = flags.Get(database.UserFlagMassMailOptOut)
|
||||||
target.Options.NoPhoto = flags.Get(database.UserFlagDisallowSetPhoto)
|
target.Options.NoPhoto = flags.Get(database.UserFlagDisallowSetPhoto)
|
||||||
|
|
||||||
// TODO - fill in Autojoin option and Joins
|
// TODO - fill in Joins
|
||||||
/*
|
|
||||||
AutoJoin bool `xml:"autojoin,attr"` // auto-join communities?
|
|
||||||
*/
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user