mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-23302 Credit to Aparup. New cap moodle/user:manageownfiles to control private user files area
This commit is contained in:
parent
a2580005a5
commit
e4f413b4b3
4 changed files with 19 additions and 4 deletions
|
@ -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
|
||||
)
|
||||
),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue