Visibility of Moodle block

Re: Visibility of Moodle block

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Just change the permission check to:

$context = get_context_instance(CONTEXT_SYSTEM); 
if (!has_capability('moodle/site:config',$context)) {