access denied to module after creating table in phpMyadmin - drupal 7 -


i developing drupal 7 module. have created table in drupal database module directly in phpmyadmin. have set te permissions module viewed authenticated users. module works fine when log in administrator. gives "access denied" when log in authenticated user.

anyone suggestions how can give authenticated users access? thanks!

probably, issue in menu hook. please check access argument.

it should this:

  $items['abc-url'] = array(     'title' => 'page abc',     'page callback' => 'page_abc',     'type' => menu_callback,     'access arguments' => array('access abc'),     'file' => 'my_module.admin.inc',   ); 

then need define it(in drupal 7 following):

function my_module_permission() {   return array(     'access abc' => array(       'title' => t('access abc'),       'description' => t('this provide permission abc.'),     ),   ); } 

then clear cache, go user permissions page & give authenticated user permission "access abc".

hope help.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -