demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Bug with internal linking #1707

Open demianturner opened 11 years ago

demianturner commented 11 years ago

Using the CMS module I ran into some complications with the navigation for internal links. Testing it and looking at the code I assume the same problem exists with the old navigation code as well [1].

A menu entry for an internal link does not show up when you select "Roles that can view this page: All roles" for its subsection through the backend. The section / subsection are assigned with a "-2" (SGL_ANY_ROLE) which can never be evaluated as true in "... in_array($this->_rid, explode(',', $linkedSection->perms) ...".

[1] http://trac.seagullproject.org/browser/modules/0.6/navigation/classes/SimpleDriver.php#L475