This question is locked. New answers and comments are not allowed.
Hello,
How could I to check for Context.User.IsInRole inside a clientemplate?
I've tried with the next code but it doesn't work:
.ClientTemplate(
"<# if (!QuotationSend || Context.User.IsInRole('Administrator')) { #>" +
"<a href='/Quotations/Edit/<#= QuotationId #>'>" +
"<img class='NoBorderImg' alt='Edit' src='" + Url.Content("../../Images/Edit.png") + "' />" +
"</a>" +
"<# } #>"
)
Regards
Jose
How could I to check for Context.User.IsInRole inside a clientemplate?
I've tried with the next code but it doesn't work:
.ClientTemplate(
"<# if (!QuotationSend || Context.User.IsInRole('Administrator')) { #>" +
"<a href='/Quotations/Edit/<#= QuotationId #>'>" +
"<img class='NoBorderImg' alt='Edit' src='" + Url.Content("../../Images/Edit.png") + "' />" +
"</a>" +
"<# } #>"
)
Regards
Jose