Skip to content

Commit

Permalink
fixed problem on user edit page when user not fully setup, reverted g…
Browse files Browse the repository at this point in the history
…uest handling
  • Loading branch information
skodak committed Feb 15, 2007
1 parent b7c3bb2 commit d66f0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/edit.php
Expand Up @@ -23,7 +23,7 @@
redirect($CFG->httpswwwroot.'/login/index.php');
}

if (isguestuser()) {
if (isguest()) { //TODO: add proper capability to edit own profile and change password too
print_error('guestnoeditprofile');
}
if (!$user = get_record('user', 'id', $USER->id)) {
Expand Down

0 comments on commit d66f0c9

Please sign in to comment.