[drupal-devel] Working around node_access in node/add
Gerhard Killesreiter
killesreiter at physik.uni-freiburg.de
Sun Feb 13 10:23:50 UTC 2005
On Sat, 12 Feb 2005, Mark wrote:
> Moshe Weitzman wrote:
>
> > -1. Consider the case when we are retrieving a list of nodes. We don't
> > want to call a hook against every single node we've retrieved. We want
> > to retrieve only the right nodes in SQL. That is the whole point of
> > the node_access table.
>
> I'm looking to further restrict access using the node_access table as
> well. I only want to allow the creation of certain node types if 1)
> they don't require a parent to exist or 2) I can tell from the query
> params/environment/etc which node is the parent. Failing both of these,
> I don't want them to appear on the "create content" list.
>
> Can you think oa another way to do this?
Can't you just hide or disable the /node url and add a node creation
interface for yourself?
Cheers,
Gerhard
More information about the drupal-devel
mailing list