"Access denied" bug is fixed to be compatible with drupal 4.5R. The discussion started from this post http://drupal.org/node/11239. Here is the related discussion, http://drupal.org/node/11275. Please update the cvs accordingly,

-- function mailhandler_menu() {
++ function mailhandler_menu($may_cache) {

global $user;

$items = array();

++ if ($may_cache) {
++ $access = user_access('administer mailhandler');

$items[] = array('path' => 'admin/settings/mailhandler',
'title' => t('mailhandler'),
'callback' => 'mailhandler_admin',
- 'access' => user_access('administer mailhandler'));
+ 'access' => $access);
$items[] = array('path' => 'admin/settings/mailhandler/list',
'title' => t('list'),
- 'type' => MENU_DEFAULT_LOCAL_TASK);
+ 'type' => MENU_DEFAULT_LOCAL_TASK,
+ 'access' => $access);
$items[] = array('path' => 'admin/settings/mailhandler/add',
'title' => t('add mailbox'),
- 'type' => MENU_DEFAULT_LOCAL_TASK);
+ 'type' => MENU_LOCAL_TASK,
+ 'access' => $access);
+ }
return $items;
}

Comments

moshe weitzman’s picture

please feel free to commit your fix. looks good.
-moshe

killes@www.drop.org’s picture

A similar fix has already been committed.

Anonymous’s picture