mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
MDL-38368 folder: No edit button when displayed inline
This commit is contained in:
parent
8673a98d1d
commit
9f1b00a85d
@ -61,7 +61,8 @@ class mod_folder_renderer extends plugin_renderer_base {
|
||||
$output .= $this->output->box($this->render(new folder_tree($folder, $cm)),
|
||||
'generalbox foldertree');
|
||||
|
||||
if (has_capability('mod/folder:managefiles', $context)) {
|
||||
// Do not append the edit button on the course page.
|
||||
if ($folder->display != FOLDER_DISPLAY_INLINE && has_capability('mod/folder:managefiles', $context)) {
|
||||
$output .= $this->output->container(
|
||||
$this->output->single_button(new moodle_url('/mod/folder/edit.php',
|
||||
array('id' => $cm->id)), get_string('edit')),
|
||||
|
Loading…
x
Reference in New Issue
Block a user