Only show the first page if not authorized

main2
Bob Mottram 2019-10-22 14:53:51 +01:00
parent 2fb21da602
commit a8c177cbd1
1 changed files with 3 additions and 0 deletions

View File

@ -1966,6 +1966,9 @@ def createBoxBase(session,baseDir: str,boxname: str, \
ocapAlways: bool,pageNumber=None) -> {}: ocapAlways: bool,pageNumber=None) -> {}:
"""Constructs the box feed for a person with the given nickname """Constructs the box feed for a person with the given nickname
""" """
if not authorized:
pageNumber=1
if boxname!='inbox' and boxname!='dm' and \ if boxname!='inbox' and boxname!='dm' and \
boxname!='tlreplies' and boxname!='tlmedia' and boxname!='outbox': boxname!='tlreplies' and boxname!='tlmedia' and boxname!='outbox':
return None return None