Skip to content

Commit

Permalink
MDL-23167 added missing cap test - print the footer link to purge cac…
Browse files Browse the repository at this point in the history
…hes only when allowed to
  • Loading branch information
skodak committed Jul 25, 2010
1 parent 87635e7 commit 1b396b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function standard_footer_html() {
if (!empty($CFG->debugpageinfo)) {
$output .= '<div class="performanceinfo">This page is: ' . $this->page->debug_summary() . '</div>';
}
if (debugging(null, DEBUG_DEVELOPER)) { // Only in developer mode
if (debugging(null, DEBUG_DEVELOPER) and has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))) { // Only in developer mode
$output .= '<div class="purgecaches"><a href="'.$CFG->wwwroot.'/admin/purgecaches.php?confirm=1&amp;sesskey='.sesskey().'">'.get_string('purgecaches', 'admin').'</a></div>';
}
if (!empty($CFG->debugvalidators)) {
Expand Down

0 comments on commit 1b396b1

Please sign in to comment.