hi,
I am trying to control showing Product Details sections based on logged in user's role.
For Ex: If logged in user is Forum Moderator, I do not want to show certain tabs in Product Details, like Purchased with Orders, Attribute tabs etc.
Also, moving on, I want to hide certain sections in Product Info page also, in similar fashion, based on logged in User's role.
On partial View, ProductModel is being used. So I tried adding new property to ProductModel, getting customer role from permissionService >> WorkContext >> Customer >> CustomerRole. Long route to get one property, but I could not find way to get what I need on product details view.
Requirement is pretty clear, getting Customer Role or IsForumModerator to _CreateOrUpdate.cshtml. Specifically only for Admin area.
Can anyone please suggest a way to do this ? TIA !