summaryrefslogtreecommitdiff
path: root/modules/watchdog.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-10-21 10:50:03 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-10-21 10:50:03 +0000
commitc0525a7c18100c229a98091660251934a84c9a89 (patch)
treed2cd60f751633b0f7cfe9e14ad9c20e4915e0bb4 /modules/watchdog.module
parent81b35fbe4a0622a1bc9b010c02b22911526474dc (diff)
downloadbrdo-c0525a7c18100c229a98091660251934a84c9a89.tar.gz
brdo-c0525a7c18100c229a98091660251934a84c9a89.tar.bz2
- #34757: Remove administer watchdog permission (drumm)
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r--modules/watchdog.module12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module
index 1ffd7376c..7531f6c13 100644
--- a/modules/watchdog.module
+++ b/modules/watchdog.module
@@ -32,22 +32,15 @@ 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().
*
* Remove expired log messages and flood control events.
@@ -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);