MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@
|
||||
// Add an advanced search tab.
|
||||
$row[] = new tabobject('asearch', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&mode=asearch', get_string('search', 'data'));
|
||||
|
||||
if (isloggedin()) {
|
||||
if (isloggedin()) { // just a perf shortcut
|
||||
if (data_user_can_add_entry($data, $currentgroup, $groupmode)) { // took out participation list here!
|
||||
$addstring = empty($editentry) ? get_string('add', 'data') : get_string('editentry', 'data');
|
||||
$row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/edit.php?d='.$data->id, $addstring);
|
||||
|
||||
Reference in New Issue
Block a user