summaryrefslogtreecommitdiff
path: root/modules/watchdog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r--modules/watchdog.module6
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";