Ticket #13788 (new Bug)

Opened 2 years ago

Restrict to authenticated users overrides condition/expression in Products.ResourceRegistries

Reported by: saily Owned by:
Priority: minor Milestone: 4.x
Component: Unknown Version: 4.3
Keywords: Cc:

Description

Steps to reproduce in portal_css registry:

  • Add a new stylesheet and check 'Restrict to authenticated users? If yes, the condition will be ignored.'.
  • Add an additional expression (as we do for diazo inclusion/exclusion), for example: python:request.get('HTTP_X_THEME_ENABLED', False) to render a specific style for edit/add forms only.

Products.ResourceRegistries will completly ignore that expression. This issue was discovered in portal_css, but may affect portal_javascript registry too.

Note: See TracTickets for help on using tickets.