Hello all,
I need authorisation in my application and stumbled upon the plugin RoleRequirement. It works fine. But I don't like the default behaviour when a user doesn't have proper rights to request an action. The default is just:
I changed that line in the method access_denied toCode Ruby:render :nothing => true, :status => 401 return false
There are two things I don't like with this solution. First I want to avoid to change the plugin's code ... or is it ok to change files in the lib directory? Second - what could I do if I need different redirect targets? Is there a way to overwrite the original method?Code Ruby:redirect_to new_session_path
Thanks,
oerdec




Bookmarks