]> git.mjollnir.org Git - moodle.git/commitdiff
admin/roles: context-specific role changes mark the context as dirty
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:10:52 +0000 (07:10 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:10:52 +0000 (07:10 +0000)
And will force a reload of $USER->access for logged-in users that need
to read _this_ context. Much lower impact - still not a great idea to
edit assignments/caps on very busy courses, but impact should be low.

admin/roles/assign.php
admin/roles/override.php

index aa62e9e0d7499e4e254bfc2ac11996e6a2f44d28..8088733a069597644c6a1bcc68a9e5843459afc6 100755 (executable)
                     }
                 }
             }
+            // force accessinfo refresh for users visiting this context...
+            mark_context_dirty($context->path);
 
         } else if ($remove and !empty($frm->removeselect) and confirm_sesskey()) {
 
                     }
                 }
             }
+            // force accessinfo refresh for users visiting this context...
+            mark_context_dirty($context->path);
 
         } else if ($showall) {
             $searchtext = '';
index 454e55f704bc8151aaa08f11e65cb1ef9ccbc8f3..e7938d8d3e44e831535805f38bff7678a1c36d1f 100755 (executable)
                 }
             }
         }
+
+        // force accessinfo refresh for users visiting this context...
+        mark_context_dirty($context->path);
+
         redirect($baseurl);
     }