I know that a meteor compiles patterns all the way to the client. With meteor-auth, is there a way to only send templates when the user has permission to view them (so that they are not visible when checking the html code on the client side)? For example, we do not want you to always send the admin section to the browser.
For example, if I have
<template name="admin_main">
<h2>Admin Menu</h2>
....
</template>
If mine Meteor.user().profile.userlevelis 5, only then I want the template to be published to the user. Otherwise, my other users may see my admin menu with little js knowledge
source
share