]> git.mjollnir.org Git - moodle.git/commitdiff
Merged capability name fix from stable
authormoodler <moodler>
Mon, 23 Oct 2006 03:29:54 +0000 (03:29 +0000)
committermoodler <moodler>
Mon, 23 Oct 2006 03:29:54 +0000 (03:29 +0000)
mod/forum/rate.php

index bf79444d0774e5d92fd186a5ba14923f61818c6b..3d5207b35d9c1df4e48f4de4717f4f4c629951c4 100644 (file)
@@ -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
+?>