Opened 3 months ago

Last modified 3 months ago

#5617 new enhancement

Private mode

Reported by: Olivier Mehani Owned by:
Priority: major Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

Here is a first cut at requiring login before seeing content.

It adds a configuration option, require_login, which, if set, prevents media and listings from being displayed to anonymous visitors.

It also doesn't output any entry in the RSS feed, which could otherwise be used to discover paths to the media.

I realised fairly late that this sort of behaviour could be implemented through decorators (probably as a light superset to @require_active_login, checking the config). At the moment, this is mostly implemented within the Jinja templates, rendering login pages where listings should be, rather than blocking the entire page.

Let's discuss what the best approach is!

Subtickets

Attachments (1)

0001-Limit-access-to-media-to-logged-in-users.patch (7.8 KB) - added by Olivier Mehani 3 months ago.

Download all attachments as: .zip

Change History (2)

Changed 3 months ago by Olivier Mehani

comment:1 Changed 3 months ago by Olivier Mehani

Parent Tickets: 5586
Note: See TracTickets for help on using tickets.