diff options
Diffstat (limited to 'notes/author.go')
| -rw-r--r-- | notes/author.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/notes/author.go b/notes/author.go index faf4f7b..74201c1 100644 --- a/notes/author.go +++ b/notes/author.go @@ -9,3 +9,11 @@ type Author struct { Pronouns string NoUnauth bool } + +func IsPublic(author *Author) bool { + if author == nil { + return false + } + + return !author.NoUnauth +} |
