uploading of users has new capability 'moodle/user:upload' now also with admin block integrated

This commit is contained in:
skodak 2006-09-24 12:31:49 +00:00
parent 0c19750c72
commit cc891abe88
4 changed files with 31 additions and 17 deletions

View file

@ -294,7 +294,23 @@ $moodle_capabilities = array(
'moodle/user:update' => array(
'riskbitmask' => RISK_SPAM,
'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'legacy' => array(
'guest' => CAP_PREVENT,
'student' => CAP_PREVENT,
'teacher' => CAP_PREVENT,
'editingteacher' => CAP_PREVENT,
'coursecreator' => CAP_PREVENT,
'admin' => CAP_ALLOW
)
),
'moodle/user:upload' => array(
'riskbitmask' => RISK_SPAM | RISK_PERSONAL,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,