View 'about' info

Hello,

The Security settings include the Allow anyone to view 'about' information checkbox, which controls whether the content author info is shown to anonymous users. However, this information is always visible to logged-in users.

I would like to display this info only to users with a specific permission. What is the best way to implement this? As I see it, in the view classes the corresponding condition is checked by the show_about method, so an obvious approach would be override it - but that would have to be done for every view. Is there a simpler way to achieve this without overriding each view individually?

I am using Plone 6 with classic UI.

The viewlet registration has a permission attribute:

You can customize it with something like:

  <browser:viewlet
      name="plone.documentbyline"
      manager="plone.app.layout.viewlets.interfaces.IBelowContentTitle"
      class="plone.app.layout.viewlets.content.DocumentBylineViewlet"
      permission="..."
      layer="..."
      />
1 Like

Thanks! That seems to affect only the document byline, though - not the author info shown in other views. For example, it doesn’t remove the author info displayed under each item in the folder listing_view.

1 Like