]> git.mjollnir.org Git - moodle.git/commitdiff
fixed problem on user edit page when user not fully setup, reverted guest handling
authorskodak <skodak>
Thu, 15 Feb 2007 22:03:29 +0000 (22:03 +0000)
committerskodak <skodak>
Thu, 15 Feb 2007 22:03:29 +0000 (22:03 +0000)
user/edit.php

index 21285c0086e87249b7e5798cef1dc3a4a76108bf..26e01d938b1db7c2d2e90055de8828e997f5479c 100644 (file)
@@ -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)) {