0
hodor created
Hello,
I need to find logined user role by his / her id to display a specific menu item or not. Is there a built-in method for doing this or i should handle it by myself ? Can anyone lead me. Thanks.
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Good qustion, I've used userRoleRepository to do this
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi,
You can use UserManager's IsInRole method.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)