MDL-21782 temporary bulk enrol cap fix
authorPetr Skoda <skodak@moodle.org>
Thu, 12 Aug 2010 08:00:00 +0000 (08:00 +0000)
committerPetr Skoda <skodak@moodle.org>
Thu, 12 Aug 2010 08:00:00 +0000 (08:00 +0000)
admin/user/user_bulk_enrol.php

index 4660a3e..17f5e26 100644 (file)
@@ -10,7 +10,7 @@ $dir  = optional_param('dir', 'asc', PARAM_ALPHA);       //Order to sort (ASC)
 
 require_login();
 admin_externalpage_setup('userbulk');
-require_capability('moodle/user:delete', get_context_instance(CONTEXT_SYSTEM));
+require_capability('moodle/role:assign', get_context_instance(CONTEXT_SYSTEM)); //TODO: use some enrol cap
 $return = $CFG->wwwroot.'/'.$CFG->admin.'/user/user_bulk.php';
 //If no users selected then return to user_bulk.php
 if (empty($SESSION->bulk_users)) {