Merge branch 'MDL-65094-master' of git://github.com/rezaies/moodle
[moodle.git] / admin / renderer.php
index 257f825..3bc74ec 100644 (file)
@@ -843,8 +843,7 @@ class core_admin_renderer extends plugin_renderer_base {
      */
     protected function registration_warning($registered) {
 
-        if (!$registered) {
-
+        if (!$registered && site_is_public()) {
             if (has_capability('moodle/site:config', context_system::instance())) {
                 $registerbutton = $this->single_button(new moodle_url('/admin/registration/index.php'),
                     get_string('register', 'admin'));