Browse Source

Merge pull request #893 from writefreely/consistent-reader-nav

Fix Admin and Invite links never showing on Reader nav
develop
Matt Baer 2 weeks ago
committed by GitHub
parent
commit
038a80c25e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      read.go

+ 3
- 5
read.go View File

@@ -229,11 +229,9 @@ func showLocalTimeline(app *App, w http.ResponseWriter, r *http.Request, page in
TotalPages: ttlPages,
SelTopic: tag,
}
if app.cfg.App.Chorus {
u := getUserSession(app, r)
d.IsAdmin = u != nil && u.IsAdmin()
d.CanInvite = canUserInvite(app.cfg, d.IsAdmin)
}
u := getUserSession(app, r)
d.IsAdmin = u != nil && u.IsAdmin()
d.CanInvite = canUserInvite(app.cfg, d.IsAdmin)
c, err := getReaderSection(app)
if err != nil {
return err


Loading…
Cancel
Save