nephila / djangocms-blog

django CMS blog application - Support for multilingual posts, placeholders, social network meta tags and configurable apphooks
https://djangocms-blog.readthedocs.io
BSD 3-Clause "New" or "Revised" License
391 stars 192 forks source link

Multisite posts must not be accessible on all sites #724

Closed adrien-delhorme closed 11 months ago

adrien-delhorme commented 1 year ago

Description

When BLOG_MULTISITE = True, a post published only on Site A is accessible on all other sites.

Steps to reproduce

Versions

Python 3.10 Django 3.2 django-cms 3.9 djangocms-blog @develop

Expected behaviour

The post must not be accessible.

Actual behaviour

The post is accessible.

Additional information

PostDetailView do not call queryset.on_site()