From 5a8ab2e9df79ea936e66cd233f3280936479253d Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 31 Oct 2006 09:09:40 +0000 Subject: [PATCH] adding of user events into calendar and posting of blogs is now enabled by default - MDL-7297 and MDL-7245; merged from MOODLE_17_STABLE --- lib/db/access.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/db/access.php b/lib/db/access.php index 19faadf053..440e0dfcb7 100644 --- a/lib/db/access.php +++ b/lib/db/access.php @@ -668,13 +668,14 @@ $moodle_capabilities = array( ) ), - 'moodle/blog:create' => array( + 'moodle/blog:create' => array( // works in CONTEXT_SYSTEM only 'riskbitmask' => RISK_SPAM, 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( + 'guest' => CAP_ALLOW, // needed for default role that allows everybody to post blog entries 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, @@ -723,13 +724,14 @@ $moodle_capabilities = array( ) ), - 'moodle/calendar:manageownentries' => array( + 'moodle/calendar:manageownentries' => array( // works in CONTEXT_SYSTEM only 'riskbitmask' => RISK_SPAM, 'captype' => 'write', 'contextlevel' => CONTEXT_SYSTEM, 'legacy' => array( + 'guest' => CAP_ALLOW, // needed for default role that allows everybody to add user entries 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, -- 2.39.5