There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
User.IsInRole(permission) not working
I'm trying to use User.IsInRole(permission) on a custom cshtml but it does not work. For example, I have absolute confidence that current user has "Administrator" role but when I test it using IsInRole, the response allways is false. What is wrong?
Why it does not work? I'm using Orchard v1.6. Thanks.