Skip to content

Commit

Permalink
Document byline viewlet is now displayed only to anonymous users
Browse files Browse the repository at this point in the history
If permited by the Allow anyone to view 'about' information option in the Security Settings of Site Setup.

Refs: plone/Products.CMFPlone#1556
  • Loading branch information
hvelarde committed May 5, 2016
1 parent ec7c82e commit 1845be1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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]
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion plone/app/layout/viewlets/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 1845be1

Please sign in to comment.