mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19488 - allow the creation of a "Public" feedback
This commit is contained in:
parent
e70dab0646
commit
7b1126fd20
5 changed files with 161 additions and 73 deletions
|
@ -99,7 +99,7 @@ if(isset($create_template_formdata->savetemplate) && $create_template_formdata->
|
|||
$savereturn = 'notsaved_name';
|
||||
}else {
|
||||
//if the feedback is located on the frontpage then templates can be public
|
||||
if(SITEID === $course->id && has_capability('mod/feedback:createpublictemplate', $context)) {
|
||||
if(has_capability('mod/feedback:createpublictemplate', get_system_context())) {
|
||||
$create_template_formdata->ispublic = isset($create_template_formdata->ispublic) ? 1 : 0;
|
||||
}else {
|
||||
$create_template_formdata->ispublic = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue