I'm requesting advices about access control with the default node view panel.

I created it, it works like a charm, but I need to redirect to page 403 depending on a CCK field for the content type variant I created.

I tried to do it with a selection rule, but when the rules are not validated it don't redirect to 403 page, it just don't show the panel and show the default node template.

I tried using rules module, but the "When a node is going to be viewed" trigger don't work, because panel take the control over it.

I have several others ideas like using selection rules, and in my node-type.tpl.php, directly do a drupal redirection to 403 page, but I'm not sure that it's a good way to go. I would prefer to use the panel API to do that.



merlinofchaos’s picture

Title: Acces control with panel » Add 404 and 403 variants to allow displaying other data.
Category: support » feature

I've thought about adding 403 and 404 variants to allow this.

For now your solution is probably the best one.

merlinofchaos’s picture

I think this would be a really useful feature.

crea’s picture


merlinofchaos’s picture

Project: Panels » Chaos tool suite (ctools)
Version: 6.x-3.1 » 6.x-1.x-dev

Moving to CTools where this would live.

merlinofchaos’s picture

Status: Active » Fixed

And i've committed a variant to do that.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.