Drupal 6: Access Denied on custom module -


i have module, admin users can access module normally. when add permission other roles (and saved), other users have permimssion couldn't access it. please me.

here code:

<?php include_once(drupal_get_path('module', 'tb') .'/tb.menu.inc'); include_once(drupal_get_path('module', 'tb') .'/tb.inc');  function tb_perm() {   global $user;   return array('trial_balance'); }  function tb_menu() {   global $user;   $items = array();    $items['akuntansi/tb'] = array(     'title' => 'trial balance',   'type' => menu_normal_item,     'page callback' => 'tb_neracapage',     'file' => 'tb.inc',     'access arguments' => array('akuntansi'),     'access callback' => true,     //'type' => menu_callback,   );    $items['akuntansi/tb/pdf'] = array(     'page callback' => 'tb_neracapage_pdf',     'file' => 'tb.inc',     'access arguments' => array('akuntansi'),     'type' => menu_callback,   ); $items['akuntansi/tb/xls'] = array(     'page callback' => 'tb_neracapage_xls',     'file' => 'tb.inc',     'access arguments' => array('akuntansi'),     'type' => menu_callback,   );    return $items; }  ?> 

the problem here:

return array('trial_balance');

i should be:

return array('akuntansi');


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -