{"issue":{"created_at":"2011-11-29T08:24:59Z","state":"open","updated_at":"2011-11-29T08:25:04Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"comments":4,"body":"Die Methode Module::renderNavigation() wertet (im Fall von Menüs mit Referenz-Seite und Quickfix von Bug #1635) die Eigenschaften bzgl. Login/Gast nicht korrekt aus: \nalle Menüpunkte bzw. Seiten werden angezeigt, egal ob eine Seite sagt \"nur für Gäste\" und es ist jemand eingeloggt oder ob eine Seite sagt \"geschützt\" und es ist keiner eingeloggt. \n(Beim normalen Hauptmenü funktioniert es hingegen korrekt.)\n\nOffenbar funktioniert die SQL-Abfrage zu \"Get all active subpages\" (Module.php, Line 164) nicht (mehr) wie gewünscht, denn es rutschen auch Seiten durch, die guests=1 haben und das wird danach nicht mehr ausgewertet.\n\nEin Quickfix, der für meine Zwecke erstmal hilft:\n\n```\n\n\tprotected function renderNavigation($pid, $level=1)    \n        // ...\n\t\twhile($objSubpages->next())\n\t\t\t// ...\n\n\t\t\t$subitems = '';\n\t\t\t$_groups = deserialize($objSubpages->groups);\n            \n            // ``` begin quick fix ```\n            if (\n\n![](is_array($_groups)) $_groups = array();\n            if (FE_USER_LOGGED_IN && $objSubpages->guests == 1) continue;\n            if ($objSubpages->protected && count(array_intersect($_groups, $groups)) == 0) continue;\n            // ``` end quick fix   ```\n            \n\t\t\t// Do not show protected pages unless a back end or front end user is logged in\n\t\t\tif ()$objSubpages->protected || BE_USER_LOGGED_IN || ...\n                    // ...\n                   \n```\n\n \n\nSchöne Grüße!\n\nRelated issues: #1735\n\n--- _Originally created by webdecker on March 11th, 2010, at 06:27pm (ID 1694)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"labels":[{"name":"Feature","color":"4183c4","url":"https://api.github.com/repos/contao/test/labels/Feature"},{"name":"frontend","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/frontend"}],"id":2380553,"number":1694,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"ModuleNavigation / Module::renderNavigation() fehlerhaft","closed_at":null,"html_url":"https://github.com/contao/test/issues/1694","url":"https://api.github.com/repos/contao/test/issues/1694","milestone":{"created_at":"2011-11-29T05:27:00Z","state":"open","due_on":null,"closed_issues":24,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":28,"title":"2.8.2","description":"TYPOlight 2.8.2 (maintenance release)","url":"https://api.github.com/repos/contao/test/milestones/28","open_issues":1}},"action":"created","comment":{"created_at":"2011-11-29T08:25:04Z","updated_at":"2011-11-29T08:25:04Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"body":"Ich kann es leider auf der Demo-Website derzeit nicht wiederholen, da irgendwie das Navi-Modul mit Referenzseite gar nicht mehr funktioniert: nur wenn ich die Root-Seite als Ref-Seite angebe, ist was zu sehen, ansonsten wird nichts gerendert...\n\n--- _Originally created by webdecker on March 17th, 2010, at 10:41am_","id":2921627,"url":"https://api.github.com/repos/contao/test/issues/comments/2921627"}}