Ticket #1555 (new defect)

Opened 14 years ago

Last modified 13 years ago

navigation is not shown for anonymous users in display_mode navigation tree

Reported by: jschmitz Owned by: jmorliaguet
Priority: P1 Milestone: CPS 3.5.7
Component: CPSPortlets Version: 3.4.0
Severity: normal Keywords:
Cc:

Description

navigation is not shown for anonymous users in display_mode navigation tree, even if visibility is set to all users in the templet visibility tab.

this is caused by not passing authorized_only to getNavigationItems in widget_portlet_navigation.pt. modifying the call like below fixes this. I think the line "authorized_only=authorized_only" should be included in every call to getNavigationItems.

  <tal:block condition="python: display == 'navigation_tree'">
    <tal:block
     define="show_icons ds/show_icons;
             show_icons python: int(show_icons);
             contextual ds/contextual;
             end_depth ds/end_depth;
             folderItems python: context.getNavigationItems(
                 root_uids=root_uids,
                 context_rpath=context_rpath,
                 context_obj=context,
                 contextual=contextual,
                 end_depth=int(end_depth),
                 display_description=display_description,
                 display_hidden_folders=display_hidden_folders,
                 authorized_only=authorized_only
                 );

Change History

comment:1 Changed 14 years ago by jmorliaguet

if visibility is set to "all users" in the templet visibility tab it means that the *templet* will be visible to all users (not its content).

"authorized_only" == False always you to see folder structures that you should not see otherwise, this is used in the "extended site map" display mode, but by default the behaviour is to display only allowed folders.

are you sure that folder roles / permissions are set correctly?

comment:2 Changed 13 years ago by sfermigier

  • Milestone changed from CPS 3.4.1 to CPS 3.4.2
Note: See TracTickets for help on using tickets.