From: Penny Leach Date: Tue, 12 Jan 2010 02:58:53 +0000 (+0000) Subject: mnet MDL-18759 detect the case where a user profile is not fully set up for a remote... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5f08e124da19d3bf21ca7187f16dc315d687f407;p=moodle.git mnet MDL-18759 detect the case where a user profile is not fully set up for a remote user more elegantly --- diff --git a/lang/en_utf8/mnet.php b/lang/en_utf8/mnet.php index ea03a355c1..b4cd63e4f4 100644 --- a/lang/en_utf8/mnet.php +++ b/lang/en_utf8/mnet.php @@ -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 back to your provider 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 local users\' ability to roam to other Moodle Network hosts, use the roles system to grant them the mnetlogintoremote 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 .'; diff --git a/user/edit.php b/user/edit.php index fa20bdeb01..17672148bb 100644 --- a/user/edit.php +++ b/user/edit.php @@ -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}"); }