I'm trying to set up a rule the handle the situation where a user tries to view some content that they are not allowed to (private OG content in a group that they are not a member of). I'm finding that the 'Content is being viewed' action is not being triggered in this case, and I can't find another suitable event to handle this. My assumption is that it's because access is being denied by OG in hook_node_access, which runs first and issues a 403 before rules executes this event.

1) Is my assumption correct?
2) Is there a rules event trigger that can intercept these 403s?
3) If not, is it a feature that could/would be added to Rules?

Thanks

Comments

Yuri’s picture

Component: Rules Core » Rules Engine

I'm also interested in this. Did you have any luck with finding an alternative?

fashionary’s picture

I am also very interested.
Did anyone have a solution?

ñull’s picture

Component: Rules Engine » Rules Core

Me too urgently would need something like this.

tr’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)