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
This commit is contained in:
parent
5d55079349
commit
7ea297ca59
2 changed files with 2 additions and 2 deletions
|
@ -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'],
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue