Create New Item

PHOTO EMBED

Sat Jan 08 2022 04:04:23 GMT+0000 (UTC)

Saved by @rebukt #javascript

jQuery(document).ready(function($) {
 
 
var isLoggedIn = !!$(".logged-in").length;   
var group92 = isLoggedIn && ($(".administrator").length || abUser.group_id.indexOf("92") > -1);
 
function visibilityDriver() {
    for (scenario of visScenarios) {
        if (scenario.condition) {
            scenario.outcome();
        }
    }
}
 
var visScenarios = [
    {
        condition: !group92,
        outcome: function () {
            createNavItem('alliances', 'https://riskrecon.allbound.com/playbooks/?playbooks_category=alliances&filtered=what', 'gear', 'Alliances')
        },
    },
];
 
visibilityDriver();​
 
 
});
content_copyCOPY

Request: Add an additional item to the left nav that navigates to Playbooks > Filtered to Alliances. This should only be displayed to a specific group.