From: skodak Date: Sun, 24 Sep 2006 13:34:52 +0000 (+0000) Subject: one more sanity check for role overrides X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d4121c56054e557fa40533724b06e84b1e8dbc3c;p=moodle.git one more sanity check for role overrides --- diff --git a/admin/roles/override.php b/admin/roles/override.php index 298213bd87..a5ebc4f7a4 100755 --- a/admin/roles/override.php +++ b/admin/roles/override.php @@ -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