MDL-14779 Show analysis to students setting in Feedback module does not provide enough contol over who see feedback
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user