I want to be able to give users access to view sections of the View and I can do that with
- @if (Model.UserDataRole.RoleName == "Issuer")
- {
- //some divs here
- }
- @if (Model.UserDataRole.RoleName == "Admin")
- {
- //other divs here
- }
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Dec 3, 2020, 11:47 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Dec 3, 2020, 11:26 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Dec 3, 2020, 11:30 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Dec 3, 2020, 11:47 PM EST
Marius VasileRank #785 · 2.9K reputationPosted Dec 3, 2020, 11:50 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Dec 3, 2020, 11:51 PM EST