--- D:\flexinode.module Thu Jun 29 15:59:53 2006 +++ C:\flexinode.module Thu Jun 29 16:07:48 2006 @@ -463,9 +463,11 @@ $node = new StdClass(); $node->type = $type; } - + + $ctype = flexinode_load_content_type(substr($node->type, 10)); + if ($op == 'create') { - return user_access('create '. node_get_name($node) .' content'); + return user_access('create '. $ctype->name .' content'); } if ($op == 'update') { @@ -477,10 +479,10 @@ } if ($op == 'update' || $op == 'delete') { - if (user_access('edit any '. node_get_name($node) .' content')) { + if (user_access('edit any '. $ctype->name .' content')) { return TRUE; } - elseif (user_access('edit own '. node_get_name($node) .' content') && ($user->uid == $node->uid)) { + elseif (user_access('edit own '. $ctype->name .' content') && ($user->uid == $node->uid)) { return TRUE; } }