opendatateam / udata

Customizable and skinnable social platform dedicated to open data.
http://udata.readthedocs.org
GNU Affero General Public License v3.0
239 stars 87 forks source link

Add a "private" filter on the reuses endpoint #3140

Closed magopian closed 1 month ago

magopian commented 1 month ago

This is a new take on #1397

In this PR, we'll have the following behavior:

  1. always return each and every reuse available to the logged in user (if any), including private, deleted and archived ones
  2. if the filter is false, eg private=False, only return the reuses that don't have this filter (no private reuses)
  3. if the filter is true, eg private=True, only return the reuses that have this filter (only private reuses)