Hello,
I have a system where I have 3 user roles, anonymous, monthly and yearly. I have a page which is only accessible to yearly members. The problem comes when a monthly user tries to access the yearly page, I want it to redirect them to a 403 page telling them they need to upgrade, they don't have sufficient permissions. This works when an anonymous user tries to access a yearly page, but when a monthly member tries, it just crashes. It shows a server error or something. Can anyone point me in the right direction or tell me what I am doing wrong? Thanks

Comments

Anonymous’s picture

Assigned: » Unassigned
deekayen’s picture

Status: Active » Postponed (maintainer needs more info)

How did you setup the special denied messages? admin/settings/error-reporting ?

What is the error? If it's something that shows up in admin/reports/dblog, please post the lines from the error message.

Anonymous’s picture

It says:

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

* This problem can sometimes be caused by disabling or refusing to accept
cookies.

I'm not sure what the problem is, but when an anonymous user tries to go to a protected page, they are redirected to my 403 page. When a user with insufficient permissions (the wrong user role) tries, they get this page. Any ideas?