Hello guys
I am a newbie in drupal, i have created a new content type 'new', I have two type of roles Editor and manager. Editor must be able to add content in to the new content type but manager wont. I have specified in the module code that
function new_access($op, $node, $account) {
switch ($op) {
case 'create':
return user_access('create NEW', $account);
}
}
Now the editor got the permission for this and he can add content, but when manage login when also view the new content type but clciking on the menu will show 'Access Denied'
I want to make this content type in such a way that, when manage logins the content type 'New' must not be in the create content link
please help
Thank you