]> git.mjollnir.org Git - moodle.git/commitdiff
mnet MDL-18759 detect the case where a user profile is not fully set up for a remote...
authorPenny Leach <penny@liip.ch>
Tue, 12 Jan 2010 02:58:53 +0000 (02:58 +0000)
committerPenny Leach <penny@liip.ch>
Tue, 12 Jan 2010 02:58:53 +0000 (02:58 +0000)
lang/en_utf8/mnet.php
user/edit.php

index ea03a355c1e9ea1758637df84474648acb0fa6f8..b4cd63e4f4deb93b56b54cbd1d2ad1f0d04503dd 100644 (file)
@@ -218,6 +218,7 @@ $string['authmnetdisabled'] = 'Moodle Networking authentication is disabled.';
 $string['unknownerror'] = 'Unknown error occurred during negotiation.';
 $string['nolocaluser'] = 'No local record exists for remote user, and it could not be created, as this host will not auto create users.  Please contact your administrator!';
 $string['notenoughidpinfo'] = 'Your identity provider is not giving us enough information to create or update your account locally.  Sorry!';
+$string['usernotfullysetup'] = 'Your user account is incomplete.  You need to go <a href=\"$a\">back to your provider</a> and ensure your profile is completed there.  You may need to log out and in again for this to take effect.';
 $string['databaseerror'] = 'Could not write details to the database.';
 $string['ssoacldescr'] = 'Use this page to grant/deny access to specific users from remote Moodle Network hosts. This is functional when you are offering SSO services to remote users. To control your <em>local</em> users\' ability to roam to other Moodle Network hosts, use the roles system to grant them the <em>mnetlogintoremote</em> capability.';
 $string['ssoaclneeds'] = 'For this functionality to work, you must have Moodle Networking On, plus the Moodle Network authentication plugin enabled with auto-add users enabled .';
index fa20bdeb0103d83e657242a179994abd890c79a3..17672148bb87a1a225555ac7b7a1cf83e66ac751 100644 (file)
@@ -79,6 +79,10 @@ if (!empty($CFG->usetags)) {
 
 // remote users cannot be edited
 if (is_mnet_remote_user($user)) {
+    if (user_not_fully_set_up($user)) {
+        $hostwwwroot = $DB->get_field('mnet_host', 'wwwroot', array('id'=>$user->mnethostid));
+        print_error('usernotfullysetup', 'mnet', '', $hostwwwroot);
+    }
     redirect($CFG->wwwroot . "/user/view.php?course={$course->id}");
 }