summaryrefslogtreecommitdiff
path: root/django/archives/auth.py
AgeCommit message (Collapse)Author
2025-06-16Update to community auth v3HEADmasterMagnus Hagander
2024-04-11Update to support django 4.2Magnus Hagander
2023-06-07Sync up to latest version of pgweb auth pluginMagnus Hagander
2020-08-11Update to latest version of community auth pluginMagnus Hagander
This includes support for receiving updates through the push api.
2020-04-14Extra quote the url from 'next' in authenticationMagnus Hagander
If the next URL contained a + django would helpfully change that into a space, which broke things further down the chain. So put back this escaping, in the hope that the redirect will be correct down the road. This fixes is for spaces, let's hope it doesn't instead break it for something else.
2020-04-01is_authenticated is no longer a callable in newer DjangoMagnus Hagander
2020-04-01Mark all ForeignKeys as on_delete=CASCADEMagnus Hagander
2019-01-04Whitespace fixesMagnus Hagander
2019-01-04Fix indentationMagnus Hagander
Per pep8 warnings, adjust indentation for consistency
2019-01-04Tabs to 4 spacesMagnus Hagander
pep8 standard for indentation
2019-01-04Update django app to python 3Magnus Hagander
2019-01-03Use "in" syntax instead of has_key()Magnus Hagander
has_key() has been deprecated for a while and will be gone in Python3. The in syntax is available in both the old and the new versions.
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