8000 [BUG] About the refresh of the page permission cache · Issue #7962 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content
[BUG] About the refresh of the page permission cache #7962
Closed
@baloyou

Description

@baloyou

djangocms: 4.1.1

  1. Create a user group
  2. Add the user to the user group
  3. In the advanced settings of the page, add the user group for View restrictions
    At this point, the user should have permission to browse the page.
    However, the user will see a 404 page (insufficient permissions)
  4. Restart the service 'python manage.py runserver'
    Users can access it normally

I'M NOT SURE IF IT'S INTENTIONAL DESIGN, OR IF IT'S A BUG. My current solution, though, is to manually flush the cache

@fsbraun :)

from cms.cache.permissions import clear_permission_cache
clear_permission_cache()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0