Summary: I am after suggestions on how to handle node access for anon/auth, when there is a node type that is frequently in Draft, and those roles can't access the node when in draft, and so end up in the system Access Denied path.
Details: So we have Openings. The Openings are browseable by anon/auth users, and frequently cached by search engines, which is relevant because that's how most of the traffic arrives. The Openings are put into Draft when they are no longer applicable, but will be likely used again with minor modifications in the near future.
I want to be able to route this particular type of query/response back to a view to search for different nodes that are available.
I have tried with nginx rules, but of course nginx has no idea of the perms backdrop is in charge of, so that's out.
I have tried Rules "before content is viewed", but that seems to be "before content is viewed" + "viewer has permission access to node"; they don't, so it is useless.
I have tried use hook_node_access and url_inbound_alter but couldn't trip the right point.
Any hints?
Recent comments
Hey there! That error message is definitely a head-scratcher. Even though you uninstalled Views, it sounds like something is still referencing a Views-related constant. Maybe a custom module or...
VIEWS_STORAGE_OVERRIDE
Thanks Alejandro. That was the clues I needed.
Ubercart - Programmatically add product to cart and straight to Checkout
Have you tried uc_cart_add_item()? You need to provide the nid of the product. Then you can use backdrop_goto('cart/checkout'); to send the user to the checkout screen. uc_cart_add_item...
Ubercart - Programmatically add product to cart and straight to Checkout
No problem, let's see how it evolves. I'd be happy to provide a suggested version if i could. I will keep that in mind and try learn this hook chain hopefully very soon. I will...
File hashing uploads made through TinyMCE
I could request hashing support, but that's the lazy way 🤣 I would appreciate it if you as an active maintainer would 'officially' add a hashing support...
File hashing uploads made through TinyMCE