summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-07 15:50:05 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-07 15:50:05 +0000
commit42cd39dbd8cc7e9a7b858f0064fce45b11586e59 (patch)
treee16caa692e015e97ad62f4fb9e2a950ae0657162 /modules
parent7bd45884d8fd4e340289ad81b21855a3c12455ea (diff)
downloadbrdo-42cd39dbd8cc7e9a7b858f0064fce45b11586e59.tar.gz
brdo-42cd39dbd8cc7e9a7b858f0064fce45b11586e59.tar.bz2
- fixed permission bug in rating.module
Diffstat (limited to 'modules')
-rw-r--r--modules/rating.module10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/rating.module b/modules/rating.module
index 758064378..166edd12f 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() {