From 4b0b2d02eecaa27e3162a0fad9d31bb08f4df53b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Feb 2004 20:09:46 +0000 Subject: - Patch by Steven: removed redundant permission checks. These are no longer required thanks to the new 404 handling. --- modules/watchdog/watchdog.module | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'modules/watchdog') diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index 20a47077e..a7ed775a8 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -83,7 +83,7 @@ function watchdog_overview($type) { $header = array( array("data" => t("date"), "field" => "w.timestamp", "sort" => "desc"), - array("data" => t("event"), "field" => "w.message"), + array("data" => t("message"), "field" => "w.message"), array("data" => t("user"), "field" => "u.name"), array("data" => t("operations"), "colspan" => "2") ); @@ -132,22 +132,17 @@ function watchdog_view($id) { function watchdog_admin() { - if (user_access("administer watchdog")) { - switch (arg(2)) { - case "help": - $output = watchdog_help(); - break; - case "view": - $output = watchdog_view(arg(3)); - break; - default: - $output = watchdog_overview(arg(2)); - } - print theme("page", $output); - } - else { - print theme("page", message_access()); + switch (arg(2)) { + case "help": + $output = watchdog_help(); + break; + case "view": + $output = watchdog_view(arg(3)); + break; + default: + $output = watchdog_overview(arg(2)); } + print theme("page", $output); } function _watchdog_get_message_types() { -- cgit v1.2.3