Hi,
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.
zmove
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedI've thought about adding 403 and 404 variants to allow this.
For now your solution is probably the best one.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedI think this would be a really useful feature.
Comment #3
crea CreditAttribution: crea commentedSubscribing.
Comment #4
merlinofchaos CreditAttribution: merlinofchaos commentedMoving to CTools where this would live.
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedAnd i've committed a variant to do that.