Re: Interesting public/private forum visibility bug (or feature?)

Posted by Pedro on
URL: https://support.nabble.com/Interesting-public-private-forum-visibility-bug-or-feature-tp7590725p7590741.html

Please, test again. I've made the following edit in your macro:
<override_macro name="category_privacy_js">
    <script type="text/javascript">
        var url = '/template/NamlServlet.jtp?macro=category_ajax&node=<n.root_node.id/>';
        $(document).ready(function() {
            function showPrivateRows() {
                $('tr.private').each(function() {
                    var nodeId = $(this).attr('node');
                    url += '&node=' + nodeId;
                });
                url = url + Nabble.getClientID();
                $.getScript(url);
            }
            if (Nabble.userId)
                showPrivateRows();
        });
    </script>
</override_macro>
Greg, you can also test this code.
My test forum.