mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 14:35:29 +02:00
Merged capability name fix from stable
This commit is contained in:
parent
e73bfa2d73
commit
ebfc2f162c
@ -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");
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user