As stated here: Journal settings and role (the topic is closed so I cannot reply there) I needed to differentiate the Admin and the Journal Manager navigation in the backend.
I started then a plugin to do that. The problem is I cannot understand the RoleId() function: if I am with a site_admin account it doesn’t recognize it as site admin. I echoed the output to see the roleId, but it seems wrong.
The code is here: restrictNavigation/RestrictNavigationPlugin.inc.php at master · marlara/restrictNavigation · GitHub.
I am also open to share the final version and have suggestions from the community, if it useful for others.