MCPcopy
hub / github.com/writefreely/writefreely / canUserInvite

Function canUserInvite

account.go:72–75  ·  view source on GitHub ↗
(cfg *config.Config, isAdmin bool)

Source from the content-addressed store, hash-verified

70}
71
72func canUserInvite(cfg *config.Config, isAdmin bool) bool {
73 return cfg.App.UserInvites != "" &&
74 (isAdmin || cfg.App.UserInvites != "admin")
75}
76
77func (up *UserPage) SetMessaging(u *User) {
78 // up.NeedsAuth = app.db.DoesUserNeedAuth(u.ID)

Callers 5

viewCollectionPostFunction · 0.85
NewUserPageFunction · 0.85
handleViewCollectionFunction · 0.85
showLocalTimelineFunction · 0.85
pageForReqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected