MDL-14779 Show analysis to students setting in Feedback module does not provide enough contol over who see feedback

This commit is contained in:
agrabs
2008-06-22 18:02:54 +00:00
parent eee5d9bb85
commit 488b13baba
7 changed files with 41 additions and 8 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
require_login($course->id, true, $cm);
if( !( (intval($feedback->publish_stats) == 1) || $capabilities->viewreports)) {
if( !( ((intval($feedback->publish_stats) == 1) AND $capabilities->viewanalysepage) || $capabilities->viewreports)) {
error(get_string('error'));
}