This makes flexinode_access work. The hook is actually called with a string sometimes, so that is why that funky object creation is needed. The flexinode_node_name() part is correcting a typo.

CommentFileSizeAuthor
#1 flexinode.module_2.diff912 bytesdrumm

Comments

drumm’s picture

StatusFileSize
new912 bytes
drumm’s picture

Status: Needs review » Fixed
Mad Maks’s picture

i have just updated this module in my drupal cvs version and nobody but me (acces to everything) can view a page made by a flexinode. If a user ad a page and click submit he is redirected to the frontpage but the page is added to the system.

maybey a connected problem: pages with categories added in the form are since CVS not listed in the categorie list like: http://www.mysite.com/taxonomy/term/17

one positive thing: with the version of today users can add flexinode pages :-)

Mad Maks’s picture

Status: Fixed » Active

i am not sure if the above comment has something to do with the patch. but as it is this is not fixed.

drumm’s picture

Status: Active » Closed (fixed)

I tried to reproduce this problem on a clean CVS version of Drupal and Flexinode from a few minutes ago. I couldn't.

Mad Maks’s picture

hmm, thank for checking. will do a clean install of flexinode.

Mad Maks’s picture

just for the record, i found my problem.

i have made a node-flexinode-1.tpl.php. it turns out that this page shows all the flexinodes even as they are in the moderation cue. But if you (as a anonymous user) click on read more link you are refused because the node is still in moderation (and as a superuser you are allowed to see the page).

the pages created last week are automaticly placed in the moderationcue and so they are not vissible for anonymous users but i was confusued by my custom made page.

sorry for the fuzz