Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multisite posts must not be accessible on all sites #724

Closed
adrien-delhorme opened this issue Mar 31, 2023 · 0 comments · Fixed by #742
Closed

Multisite posts must not be accessible on all sites #724

adrien-delhorme opened this issue Mar 31, 2023 · 0 comments · Fixed by #742

Comments

@adrien-delhorme
Copy link
Contributor

Description

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

Steps to reproduce

  • Create two django.contrib.site.models.Site instances (for example: "Site A" and "Site B")
  • Create one blog instance
  • Create a post and choose to publish only on "Site A"
  • Go to the post's url on Site B
  • The post is accessible

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant