You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to Meteoris, where should a function like isAdmin() go, which would check a user ID? Better yet, is this something that could be included in meteoris? Perhaps isRole('role', '_Id') would be better.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi Julian, I'll try to make some helpers about this. Btw for now You can easily check what role does an user have by checking it's Meteor.user.profile.mugenRoleGroupId, "1" mean admin, "2" mean authenticated user.
Thanks! How do I apply that to a particular user? I was also curious, in general, about where 'utility' functions like that would go, according to your folder convention.
@JulianKingman : have You seen my video tutorial about user roles? I think You can understand how to do that from there. If you want to deeply take a look about the code, you can look at mugen folder.
I'm new to Meteoris, where should a function like isAdmin() go, which would check a user ID? Better yet, is this something that could be included in meteoris? Perhaps isRole('role', '_Id') would be better.
Thanks!
The text was updated successfully, but these errors were encountered: