I have a template app I’m using to learn more about Meteor 3. In this app I have a header nav bar template. In that template I use the Meteor/Roles project to determine if the current user is allowed to see some nav items. for this I use the template helper in my “headerbar.html” file as is defined in the documentation:
{{#if isInRole 'systemadmin'}}
<li><a href="#">Manage App</a></li>
{{/if}}
in the “headerbar.js” file I have imported the meteor/roles
as well with
import { Roles } from 'meteor/roles';
I have verified that the role for systemadmin
does indeed exist, and have ensured the user is assigned that role in the role-assignment
collection.
Regardless, the template helper never shows the “Manage App” option int he nav when it’s inside this helper. If I pull that <li>
out of the helper it displays as expected.
Any help on this would be much appreciated.