MDL-23302 Credit to Aparup. New cap moodle/user:manageownfiles to control private user files area

This commit is contained in:
Martin Dougiamas 2010-07-22 09:05:13 +00:00
parent a2580005a5
commit e4f413b4b3
4 changed files with 19 additions and 4 deletions

View file

@ -522,7 +522,19 @@ $capabilities = array(
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW,
'user' => CAP_ALLOW
)
),
// can the user manage their own files?
'moodle/user:manageownfiles' => array(
'riskbitmap' => RISK_SPAM | RISK_PERSONAL,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'user' => CAP_ALLOW
)
),