From d4121c56054e557fa40533724b06e84b1e8dbc3c Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 24 Sep 2006 13:34:52 +0000 Subject: [PATCH] one more sanity check for role overrides --- admin/roles/override.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5