]> git.mjollnir.org Git - moodle.git/commitdiff
one more sanity check for role overrides
authorskodak <skodak>
Sun, 24 Sep 2006 13:34:52 +0000 (13:34 +0000)
committerskodak <skodak>
Sun, 24 Sep 2006 13:34:52 +0000 (13:34 +0000)
admin/roles/override.php

index 298213bd87ed0e546e07b33225da0b08bd7e3f95..a5ebc4f7a4a3ee460b2a211bceafc3e657728683 100755 (executable)
@@ -65,7 +65,7 @@
     }
 
 /// Process incoming role override
-    if ($data = data_submitted() and confirm_sesskey()) {
+    if ($data = data_submitted() and $roleid and confirm_sesskey()) {
         $allowed_values = array(CAP_INHERIT, CAP_ALLOW, CAP_PREVENT, CAP_PROHIBIT);
         $capabilities = fetch_context_capabilities($context); // capabilities applicable in this context