For some reason i am not able to specify roles that should be allowed access to the error log. No matter what role i enter (i have Admin, Super and Test roles), my app just redirects to the login screen, which is the expected behaviour should i not be authorized. If i choose to allow all roles with the * it works just fine, but allows all roles when i need to restrict it to Super role only.
I have the following in my web.config file which allows access to all roles when they are logged in:
<add key="loginUrl" value="~/Login/" />
<add key="elmah.mvc.disableHandler" value="false" />
<add key="elmah.mvc.disableHandleErrorFilter" value="false" />
<add key="elmah.mvc.requiresAuthentication" value="true" />
<add key="elmah.mvc.allowedRoles" value="*" />
<add key="elmah.mvc.route" value="elmah" />
But when i change the allowedRoles line to:
<add key="elmah.mvc.allowedRoles" value="Super" />
it does not allow access to anyone and just sends them to the login screen.
Any ideas would be greatly appreciated. This is my first attempt at using Elmah, and it seems really good, but i am not that familiar with it yet, so should anyone need any more info to be able to help just ask and i will provide.
EDIT
I have now configured Emlah to use SQL Server to log the errors, not sure if that will make a difference to any potential answers.