Skip to content
Snippets Groups Projects
Commit 058b53ba authored by unknown's avatar unknown
Browse files

Bugfix : les membres d'un groupe mahara peuvent désormais créer des pages par défaut

parent 9340f28a
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,6 @@ if (count($students) == 0) { ...@@ -75,7 +75,6 @@ if (count($students) == 0) {
'role' => "admin", 'role' => "admin",
)); ));
} }
//All params used for mahara_group_create_groups her we can add/change some lines //All params used for mahara_group_create_groups her we can add/change some lines
$params = array ( $params = array (
'groups' => 'groups' =>
...@@ -88,7 +87,8 @@ if (count($students) == 0) { ...@@ -88,7 +87,8 @@ if (count($students) == 0) {
'request' => true, 'request' => true,
'public' => false, 'public' => false,
'institution' => $CFG->instution_mahara, 'institution' => $CFG->instution_mahara,
'members' => $usersTab 'members' => $usersTab,
'editroles' => 'all'
) )
) )
); );
......
...@@ -71,6 +71,7 @@ if (count($students) == 0) { ...@@ -71,6 +71,7 @@ if (count($students) == 0) {
continue; continue;
} }
array_push($mahara_groups, array( array_push($mahara_groups, array(
'name' => get_string('course_group', 'block_mahara_iena') . " " . $COURSE->shortname . " – " . $group->name, 'name' => get_string('course_group', 'block_mahara_iena') . " " . $COURSE->shortname . " – " . $group->name,
'description' => get_string('course_group', 'block_mahara_iena') . " " . $COURSE->shortname . " – " . $group->name, 'description' => get_string('course_group', 'block_mahara_iena') . " " . $COURSE->shortname . " – " . $group->name,
...@@ -78,7 +79,8 @@ if (count($students) == 0) { ...@@ -78,7 +79,8 @@ if (count($students) == 0) {
'request' => true, 'request' => true,
'public' => false, 'public' => false,
'institution' => $CFG->instution_mahara, 'institution' => $CFG->instution_mahara,
'members' => $usersTab 'members' => $usersTab,
'editroles' => 'all'
)); ));
array_push($name_groups, array( array_push($name_groups, array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment