From 7ea297ca59ff729cd94268a5e55dfd76f0c56052 Mon Sep 17 00:00:00 2001 From: helmutm Date: Wed, 14 Oct 2009 13:11:46 +0000 Subject: [PATCH] show parents/related concepts portlet for anonymous if site option 'showParentsForAnonymous' is set git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3589 fd906abe-77d9-0310-91a1-e0d9ade77398 --- browser/concept.py | 2 +- browser/resource.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/browser/concept.py b/browser/concept.py index a07d0ab..c5abcdf 100644 --- a/browser/concept.py +++ b/browser/concept.py @@ -196,7 +196,7 @@ class ConceptView(BaseView): cont = self.controller if cont is None: return - if (self.globalOptions('showParentsForUnauthorized') or + if (self.globalOptions('showParentsForAnonymous') or not IUnauthenticatedPrincipal.providedBy(self.request.principal)): cont.macros.register('portlet_right', 'parents', title=_(u'Parents'), subMacro=concept_macros.macros['parents'], diff --git a/browser/resource.py b/browser/resource.py index 3e59946..3addfce 100644 --- a/browser/resource.py +++ b/browser/resource.py @@ -140,7 +140,7 @@ class ResourceView(BaseView): cont = self.controller if cont is None: return - if (self.globalOptions('showParentsForUnauthorized') or + if (self.globalOptions('showParentsForAnonymous') or not IUnauthenticatedPrincipal.providedBy(self.request.principal)): if list(self.relatedConcepts()): cont.macros.register('portlet_right', 'related',