-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display document byline viewlet only to anonymous users #90
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not showing for non-anonymous too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the clock icon is available to Members. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @thet well, another proof that the toolbar design was half baked and the removal of the viewlet was a bad idea in the first place; I would prefer to leave the document byline visible for all, but in the past we had some heated discussions as some people simply wanted to get rid of it without thinking on all the unintended consequences. I was trying to move on but, yes, you are right. IMO the document byline helps to remove the cluttering of the toolbar and there are many regressions caused by its removal. @davilima6 the clock icon is not solving all cases; see plone/Products.CMFPlone#1575 |
||
|
||
def show_history(self): | ||
has_access_preview_versions_permission = _checkPermission( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice to add a test so we don't get a regression in this important line again. Where do you think it would be the best place?