mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
mnet MDL-18759 detect the case where a user profile is not fully set up for a remote user more elegantly
This commit is contained in:
parent
050449b68f
commit
5f08e124da
@ -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 .';
|
||||
|
@ -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}");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user