소스 검색

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

Fix Admin and Invite links never showing on Reader nav
develop
Matt Baer 1 개월 전
committed by GitHub
부모
커밋
038a80c25e
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. +3
    -5
      read.go

+ 3
- 5
read.go 파일 보기

@@ -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


불러오는 중...
취소
저장