2
I solved it by using chapi's solution for a similar question. Instead of hiding the submenu I re-direct unauthorized users when they click the link in the menu.
The following was added to modules/tinycontent/index.php
// main query
}
if (($id == 19) && (empty($xoopsUser))) { // id of your content
redirect_header( XOOPS_URL , 2 , _NOPERM ) ;
exit ;
}else{
$result = $xoopsDB->query( "SELECT storyid,title,text,visible,nohtml,nosmiley,nobreaks,nocomments,link,address FROM $mytablename WHERE storyid='$id' AND visible" ) ;
if( ( $result_array = $xoopsDB->fetchArray( $result ) ) == false ) {
redirect_header( XOOPS_URL , 2 , _TC_FILENOTFOUND ) ;
exit ;
}
}