MCPcopy
hub / github.com/writefreely/writefreely / CanCreateBlogs

Method CanCreateBlogs

config/funcs.go:44–49  ·  view source on GitHub ↗
(currentlyUsed uint64)

Source from the content-addressed store, hash-verified

42}
43
44func (ac AppCfg) CanCreateBlogs(currentlyUsed uint64) bool {
45 if ac.MaxBlogs <= 0 {
46 return true
47 }
48 return int(currentlyUsed) < ac.MaxBlogs
49}
50
51// OrDefaultString returns input or a default value if input is empty.
52func OrDefaultString(input, defaultValue string) string {

Callers 1

viewCollectionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected