summaryrefslogtreecommitdiff
path: root/django/archives/util.py
AgeCommit message (Collapse)Author
2019-01-04Whitespace fixesMagnus Hagander
2019-01-04Tabs to 4 spacesMagnus Hagander
pep8 standard for indentation
2018-04-18Add PGWebContextProcessor from pgwebJonathan S. Katz
This adapts the code for the "gitrev" variable that can be used in templates. This will enable cache busting for self hosted asset files. The path for where the archive app is stored differs from pgweb, so the relative directory is changed in this implementation.
2018-01-15Implement per-list permissionsMagnus Hagander
This assumes we sync subscribers over from the list server (using pglister), getting their community authentication usernames. Then, by requesting a community auth login, it's possible to restrict the session to view only those lists the user is subscribed to. To view emails, the user must be subscribed to *all* the lists that the thread the message belongs to has shown up. This means that messages can dissappear from a listing if somebody CCs in a higher security level list. NOTE! After installing this code, the PUBLIC_ARCHIVES setting must be set to True to retain previous behaviour! Reviewed by Stephen Frost