From 42cd39dbd8cc7e9a7b858f0064fce45b11586e59 Mon Sep 17 00:00:00 2001 From: Dries Buytaert <dries@buytaert.net> Date: Sat, 7 Jul 2001 15:50:05 +0000 Subject: [PATCH] - fixed permission bug in rating.module --- modules/rating.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/rating.module b/modules/rating.module index 758064378235..166edd12fc97 100644 --- a/modules/rating.module +++ b/modules/rating.module @@ -93,16 +93,16 @@ function rating_list($limit) { function rating_page() { global $user, $theme; - if (user_access($user, "access user ratings")) { - $theme->header(); + $theme->header(); + + if (user_access("access user ratings")) { $theme->box(t("Top 100 users"), rating_list(100)); - $theme->footer(); } else { - $theme->header(); $theme->box(t("Access denied"), message_access()); - $theme->footer(); } + + $theme->footer(); } function rating_block() { -- GitLab