mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-19846 - allow admins and teachers to complete feedback, removing not edititems check as it does not appear to make sense
This commit is contained in:
parent
406c34c80f
commit
dd5cb0b5c3
@ -30,7 +30,7 @@
|
||||
|
||||
$capabilities = feedback_load_capabilities($cm->id);
|
||||
|
||||
if($feedback->anonymous == FEEDBACK_ANONYMOUS_YES AND !$capabilities->edititems) {
|
||||
if($feedback->anonymous == FEEDBACK_ANONYMOUS_YES ) {
|
||||
$capabilities->complete = true;
|
||||
}
|
||||
|
||||
@ -158,7 +158,7 @@
|
||||
//####### mapcourse-end
|
||||
|
||||
//####### completed-start
|
||||
if($capabilities->complete AND !$capabilities->edititems) {
|
||||
if($capabilities->complete) {
|
||||
// print_simple_box_start('center', '80%');
|
||||
print_box_start('generalbox boxaligncenter boxwidthwide');
|
||||
//check, whether the feedback is open (timeopen, timeclose)
|
||||
|
Loading…
x
Reference in New Issue
Block a user