mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
uploading of users has new capability 'moodle/user:upload' now also with admin block integrated
This commit is contained in:
parent
0c19750c72
commit
cc891abe88
4 changed files with 31 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue