MDL-23437 backup - move restore:restoreactivity cap from module to course context
[moodle.git] / lib / db / access.php
index 56b8f5a..bab8d9e 100644 (file)
@@ -248,7 +248,7 @@ $capabilities = array(
         'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS,
 
         'captype' => 'write',
-        'contextlevel' => CONTEXT_MODULE,
+        'contextlevel' => CONTEXT_COURSE,
         'archetypes' => array(
             'editingteacher' => CAP_ALLOW,
             'manager' => CAP_ALLOW