Skip to content

Commit

Permalink
MDL-49906 core_user: add require login exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
lameze committed May 13, 2015
1 parent 753d681 commit baa850a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion message/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// Only real logged in users.
require_login(null, false, null, true, true);
if (isguestuser()) {
throw new require_login_exception();
throw new require_login_exception('Guests are not allowed here.');
}

// Messaging needs to be enabled.
Expand Down
2 changes: 1 addition & 1 deletion user/preferences.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

require_login(null, false);
if (isguestuser()) {
throw new require_login_exception();
throw new require_login_exception('Guests are not allowed here.');
}

$userid = optional_param('userid', $USER->id, PARAM_INT);
Expand Down

0 comments on commit baa850a

Please sign in to comment.