Permalink
Browse files

MDL-14041 - Hide 'manage tags' when access is not permitted

  • Loading branch information...
scyrma
scyrma committed Mar 25, 2008
1 parent bc67342 commit 830abccddab42bdace5cfe23b8f82d6bd93283b2
Showing with 3 additions and 4 deletions.
  1. +3 −4 tag/search.php
View
@@ -21,13 +21,12 @@
$systemcontext = get_context_instance(CONTEXT_SYSTEM);
$manage_link = ' ';
if ( has_capability('moodle/tag:manage',$systemcontext) ) {
$manage_link = "<a href=\"{$CFG->wwwroot}/tag/manage.php\">" . get_string('managetags', 'tag') . "</a>" ;
}
print_header_simple(get_string('tags', 'tag'), '', $navigation);
echo '<div class="managelink"><a href="'. $CFG->wwwroot .'/tag/manage.php">'. get_string('managetags', 'tag') .'</a></div>' ;
if ( has_capability('moodle/tag:manage',$systemcontext) ) {
echo '<div class="managelink"><a href='. $CFG->wwwroot .'/tag/manage.php>' . get_string('managetags', 'tag') . '</a></div>' ;
}
print_heading(get_string('searchtags', 'tag'), '', 2);

0 comments on commit 830abcc

Please sign in to comment.