Skip to content

Commit

Permalink
recently_modified and recently_published respects allow anonymous to …
Browse files Browse the repository at this point in the history
…view

  about setting
  • Loading branch information
vangheem committed Sep 24, 2013
1 parent 9cf99bd commit 0508e9a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Products/CMFPlone/skins/plone_templates/recently_modified.pt
Expand Up @@ -29,7 +29,10 @@
All recently modified items, latest first.
</div>

<div id="content-core">
<div id="content-core"
tal:define="site_properties context/portal_properties/site_properties;
isAnon context/@@plone_portal_state/anonymous;
show_about python:not isAnon or site_properties.allowAnonymousViewAbout;">
<form name="searchresults" action="" method="post" tal:condition="results"
tal:define="batch python:Batch(results, 20, int(b_start), orphan=1)">

Expand All @@ -49,7 +52,7 @@
</a>
</span>

<span class="discreet" i18n:translate="text_creator_date">
<span class="discreet" i18n:translate="text_creator_date" tal:condition="show_about">
by
<span tal:define="creator result/Creator;
author python:context.portal_membership.getMemberInfo(creator)"
Expand Down
7 changes: 5 additions & 2 deletions Products/CMFPlone/skins/plone_templates/recently_published.pt
Expand Up @@ -27,7 +27,10 @@
All published items, latest first.
</div>

<div id="content-core">
<div id="content-core"
tal:define="site_properties context/portal_properties/site_properties;
isAnon context/@@plone_portal_state/anonymous;
show_about python:not isAnon or site_properties.allowAnonymousViewAbout;">
<form name="searchresults" action="" method="post" tal:condition="results"
tal:define="batch python:Batch(results, 20, int(b_start), orphan=1)">

Expand All @@ -45,7 +48,7 @@
Title
</a>

<span class="discreet" i18n:translate="text_creator_date">
<span class="discreet" i18n:translate="text_creator_date" tal:condition="show_about">
by
<span tal:define="creator result/Creator;
author python:context.portal_membership.getMemberInfo(creator)"
Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGES.rst
Expand Up @@ -8,6 +8,10 @@ Changelog
4.3.3 (unreleased)
------------------

- recently_modified and recently_published respects allow anonymous to view
about setting
[vangheem]

- Return a 404 instead of "AttributeError: (dynamic view)" if a user attempts to
view a still-temporary PortalFactory item.
[esteele]
Expand Down

1 comment on commit 0508e9a

@mister-roboto
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Testing information:

Please sign in to comment.