Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49199

How to redirect to a certain URL if a page returns an "access denied" message?

$
0
0

hi,

I think this problem can be solved with the rules module but I don't know how. I hope some one can help me on this one :-)

Current state:
- I've created a page with the panels module. This page is available at "www.domain.com/user/[uid]/friends" (so each user has his own "My Friends Page").
- User A tries to view the "Friends Page" of User B.
- If User A has no rights to view this page (i.e. they've no friends-relationship with each other) he will get an "Access Denied" Message. This is not very user-friendly.

Target state:
- If User A has no rights to view the "Friends Page" of User B, he should get redirected to the Profile Homepage (or to any other page which I've set up as target).

My main problem is that I don't know how to configure the conditions part of the rule properly to match with "Access Denied".

How can I accomplish this?

Thanks for any help.

best regards.


Viewing all articles
Browse latest Browse all 49199

Trending Articles