From ebfc2f162c6536e993443468989d607657e2136b Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 23 Oct 2006 03:29:54 +0000 Subject: [PATCH] Merged capability name fix from stable --- mod/forum/rate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/forum/rate.php b/mod/forum/rate.php index bf79444d07..3d5207b35d 100644 --- a/mod/forum/rate.php +++ b/mod/forum/rate.php @@ -16,7 +16,7 @@ $context = get_context_instance(CONTEXT_MODULE, $cm->id); - if (!has_capability('mod/forum:ratepost', $context)) { + if (!has_capability('mod/forum:rate', $context)) { error('You do not have the permission to rate this post'); } @@ -84,4 +84,4 @@ error("This page was not accessed correctly"); } -?> \ No newline at end of file +?> -- 2.39.5