Commit c0525a7c authored by Steven Wittens's avatar Steven Wittens

- #34757: Remove administer watchdog permission (drumm)

parent 81b35fbe
......@@ -32,21 +32,14 @@ function watchdog_menu($may_cache) {
if ($may_cache) {
$items[] = array('path' => 'admin/logs', 'title' => t('logs'),
'callback' => 'watchdog_overview', 'access' => user_access('administer watchdog'));
'callback' => 'watchdog_overview');
$items[] = array('path' => 'admin/logs/event', 'title' => t('details'),
'callback' => 'watchdog_event', 'access' => user_access('administer watchdog'),
'callback' => 'watchdog_event',
'type' => MENU_CALLBACK);
}
return $items;
}
/**
* Implementation of hook_perm().
*/
function watchdog_perm() {
return array('administer watchdog');
}
/**
* Implementation of hook_cron().
*
......@@ -87,6 +80,7 @@ function watchdog_overview() {
'#options' => $names,
'#default_value' => $_SESSION['watchdog_overview_filter']
);
$form['#action'] = 'admin/logs';
$form['submit'] = array('#type' => 'submit', '#value' =>t('Filter'));
$output = drupal_get_form('watchdog_form_overview', $form);
......
......@@ -32,21 +32,14 @@ function watchdog_menu($may_cache) {
if ($may_cache) {
$items[] = array('path' => 'admin/logs', 'title' => t('logs'),
'callback' => 'watchdog_overview', 'access' => user_access('administer watchdog'));
'callback' => 'watchdog_overview');
$items[] = array('path' => 'admin/logs/event', 'title' => t('details'),
'callback' => 'watchdog_event', 'access' => user_access('administer watchdog'),
'callback' => 'watchdog_event',
'type' => MENU_CALLBACK);
}
return $items;
}
/**
* Implementation of hook_perm().
*/
function watchdog_perm() {
return array('administer watchdog');
}
/**
* Implementation of hook_cron().
*
......@@ -87,6 +80,7 @@ function watchdog_overview() {
'#options' => $names,
'#default_value' => $_SESSION['watchdog_overview_filter']
);
$form['#action'] = 'admin/logs';
$form['submit'] = array('#type' => 'submit', '#value' =>t('Filter'));
$output = drupal_get_form('watchdog_form_overview', $form);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment