Hi,
I'd like to implement a permission system to the static placeholder, which (dis)allows certain users to edit the content of static placeholders. If the user has no permission to edit static placeholders, the public (and cached) content should be shown.
The implementation of this would be quite simple:
1) Check the permission in static_placeholder (cms/templatetags/cms_tags.py) and set
placeholder = static_placeholder.public
placeholder.is_flat = True
if the user lacks the permission.
2) Set
edit = False
processors = None
in render_placeholder (cms/plugin_rendering,py) if any placeholder has the attribute is_flat = True
Sebastian