]> git.mjollnir.org Git - moodle.git/commitdiff
Make CAS work MDL-6931
authormoodler <moodler>
Wed, 25 Oct 2006 05:51:18 +0000 (05:51 +0000)
committermoodler <moodler>
Wed, 25 Oct 2006 05:51:18 +0000 (05:51 +0000)
auth/cas/login.php

index 4b652aeb42f069c6e8fd0db7e462d4f9d078e9bf..d7d09a40f71485cae9c59bcdcbb9200858b7727c 100644 (file)
@@ -159,6 +159,8 @@ defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
 
             reset_login_count();
 
+            load_all_capabilities();     /// This is what lets the user do anything on the site  :-)
+
             redirect($urltogo);
 
             exit;
@@ -266,6 +268,8 @@ defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
 
         reset_login_count();
 
+        load_all_capabilities();     /// This is what lets the user do anything on the site  :-)
+
         redirect($urltogo);
 
         exit;