Hi dear friends,
I am using ojs 2.4.7 (latest stable version) and I want to add a new menu tab into navbar which would be only visible & accessable to managers and editors, but not others (reviewer & users). This kind of menu is already present in ojs 3, but I couldnot make it in ojs 2. In ojs 3 I found the code below which wont work in ojs 2. The variable $isUserLoggedIn works fine, but I guess the problem is with variable $userRoles. I suspect it is not defined in ojs2. Can anyone help how to make this menu option work?
{if $isUserLoggedIn}
{if array_intersect(array(ROLE_ID_MANAGER, ROLE_ID_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER, ROLE_ID_AUTHOR), $userRoles)}
<li><a href="{url page="manager"}">{translate key="navigation.management"}</a></li>
{/if} {* ROLE_ID_MANAGER, ROLE_ID_EDITOR, ROLE_ID_ASSISTANT, ROLE_ID_REVIEWER, ROLE_ID_AUTHOR *}
{/if}{* $isUserLoggedIn *}
*** I cannot use ojs3 beta right now, because I am on shared host server and I cannot do tools/upgrade.php, (I have no access to ssh, only ftp).