From 1845be16f68cec3fea635032212259d8dac6de58 Mon Sep 17 00:00:00 2001 From: hvelarde Date: Thu, 5 May 2016 11:48:48 -0300 Subject: [PATCH] Document byline viewlet is now displayed only to anonymous users If permited by the Allow anyone to view 'about' information option in the Security Settings of Site Setup. Refs: https://github.com/plone/Products.CMFPlone/issues/1556 --- CHANGES.rst | 6 +++++- plone/app/layout/viewlets/content.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index da53f0e5..9efcc5b0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,7 +6,7 @@ Changelog Incompatibilities: -- Deprecated ``plone.app.layout.globals.pattern_settings``. +- Deprecated ``plone.app.layout.globals.pattern_settings``. Moved view to ``Products.CMFPlone.patterns.view``. Deprecated also pointless interface for this view. Addresses https://github.com/plone/Products.CMFPlone/issues/1513 and goes together with https://github.com/plone/Products.CMFPlone/issues/1514. @@ -18,6 +18,9 @@ New: Fixes: +- Document byline viewlet is now displayed only to anonymous users if permited by the `Allow anyone to view 'about' information` option in the `Security Settings` of `Site Setup` (closes `CMFPlone#1556`_). + [hvelarde] + - Fix body class ``pat-markspeciallinks`` not set. Fixes #84. [thet] @@ -1708,3 +1711,4 @@ Fixes: .. _`CMFPlone#1037`: https://github.com/plone/Products.CMFPlone/issues/1037 .. _`CMFPlone#1151`: https://github.com/plone/Products.CMFPlone/issues/1151 .. _`CMFPlone#1178`: https://github.com/plone/Products.CMFPlone/issues/1178 +.. _`CMFPlone#1556`: https://github.com/plone/Products.CMFPlone/issues/1556 diff --git a/plone/app/layout/viewlets/content.py b/plone/app/layout/viewlets/content.py index dabcb602..c4aebbeb 100644 --- a/plone/app/layout/viewlets/content.py +++ b/plone/app/layout/viewlets/content.py @@ -71,7 +71,7 @@ def show(self): ISecuritySchema, prefix='plone', ) - return not self.anonymous or settings.allow_anon_views_about + return self.anonymous and settings.allow_anon_views_about def show_history(self): has_access_preview_versions_permission = _checkPermission(