diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-30 09:50:36 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-30 09:50:36 +0000 |
commit | e6a67118ebfe21dcc7646676f808d1f4b2fc3a83 (patch) | |
tree | 8da776874e78d6daab8466c0b27be83008462b85 /modules/watchdog.module | |
parent | 7c1b20fe49310c9dc36b837e56277f4cc62534fd (diff) | |
download | brdo-e6a67118ebfe21dcc7646676f808d1f4b2fc3a83.tar.gz brdo-e6a67118ebfe21dcc7646676f808d1f4b2fc3a83.tar.bz2 |
- Made search.php a module, being search.module.
- Updated the permission names to be more consistent.
- Small improvement to node.php.
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index fb70530ee..aa7c5553d 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -8,11 +8,11 @@ function watchdog_help() { } function watchdog_perm() { - return array("access watchdog"); + return array("administer watchdog"); } function watchdog_link($type) { - if ($type == "admin" && user_access("access watchdog")) { + if ($type == "admin" && user_access("administer watchdog")) { $links[] = "<a href=\"admin.php?mod=watchdog\">watchdog</a>"; } @@ -67,7 +67,7 @@ function watchdog_view($id) { function watchdog_admin() { global $op, $id, $type, $order; - if (user_access("access watchdog")) { + if (user_access("administer watchdog")) { print "<SMALL><A HREF=\"admin.php?mod=watchdog&type=account\">account messages</A> | <A HREF=\"admin.php?mod=watchdog&type=regular\">regular messages</A> | <A HREF=\"admin.php?mod=watchdog&type=special\">special messages</A> | <A HREF=\"admin.php?mod=watchdog&type=warning\">warning messages</A> | <A HREF=\"admin.php?mod=watchdog&type=error\">error messages</A> | <A HREF=\"admin.php?mod=watchdog&type=httpd\">httpd messages</A> | <A HREF=\"admin.php?mod=watchdog\">overview</A> | <A HREF=\"admin.php?mod=watchdog&op=help\">help</A></SMALL><HR>\n"; |