mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
webservice MDL-17135 remove old webserviceuse capability. It is now controlled by protocol capabilities. Add warning to protocol capabilities.
This commit is contained in:
parent
2e38d70310
commit
52dd27bfbc
@ -241,7 +241,6 @@ $string['site:uploadusers'] = 'Upload new users from file';
|
||||
$string['site:viewfullnames'] = 'Always see full names of users';
|
||||
$string['site:viewparticipants'] = 'View participants';
|
||||
$string['site:viewreports'] = 'View reports';
|
||||
$string['site:usewebservices'] = 'User can be served by Moodle web services';
|
||||
$string['tag:manage'] = 'Manage all tags';
|
||||
$string['tag:create'] = 'Create new tags';
|
||||
$string['tag:edit'] = 'Edit existing tags';
|
||||
|
@ -774,13 +774,6 @@ $capabilities = array(
|
||||
)
|
||||
),
|
||||
|
||||
'moodle/site:usewebservices' => array(
|
||||
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG | RISK_DATALOSS,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'legacy' => array()
|
||||
),
|
||||
|
||||
'moodle/course:viewscales' => array(
|
||||
|
||||
'captype' => 'read',
|
||||
@ -1512,7 +1505,7 @@ $capabilities = array(
|
||||
),
|
||||
'moodle/webservice:createtoken' => array(
|
||||
|
||||
'riskbitmask' => RISK_DATALOSS | RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
||||
'riskbitmask' => RISK_CONFIG | RISK_DATALOSS | RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
||||
'captype' => 'write',
|
||||
'contextlevel' => CONTEXT_SYSTEM,
|
||||
'legacy' => array(
|
||||
|
@ -3,6 +3,7 @@
|
||||
$capabilities = array(
|
||||
|
||||
'webservice/amf:use' => array(
|
||||
'riskbitmask' => RISK_CONFIG | RISK_DATALOSS | RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
||||
'captype' => 'read', // in fact this may be considered read and write at the same time
|
||||
'contextlevel' => CONTEXT_COURSE, // the context level should be probably CONTEXT_MODULE
|
||||
'legacy' => array(
|
||||
|
@ -3,6 +3,7 @@
|
||||
$capabilities = array(
|
||||
|
||||
'webservice/rest:use' => array(
|
||||
'riskbitmask' => RISK_CONFIG | RISK_DATALOSS | RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
||||
'captype' => 'read', // in fact this may be considered read and write at the same time
|
||||
'contextlevel' => CONTEXT_COURSE, // the context level should be probably CONTEXT_MODULE
|
||||
'legacy' => array(
|
||||
|
@ -3,6 +3,7 @@
|
||||
$capabilities = array(
|
||||
|
||||
'webservice/soap:use' => array(
|
||||
'riskbitmask' => RISK_CONFIG | RISK_DATALOSS | RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
||||
'captype' => 'read', // in fact this may be considered read and write at the same time
|
||||
'contextlevel' => CONTEXT_COURSE, // the context level should be probably CONTEXT_MODULE
|
||||
'legacy' => array(
|
||||
|
@ -3,6 +3,7 @@
|
||||
$capabilities = array(
|
||||
|
||||
'webservice/xmlrpc:use' => array(
|
||||
'riskbitmask' => RISK_CONFIG | RISK_DATALOSS | RISK_SPAM | RISK_PERSONAL | RISK_XSS,
|
||||
'captype' => 'read', // in fact this may be considered read and write at the same time
|
||||
'contextlevel' => CONTEXT_COURSE, // the context level should be probably CONTEXT_MODULE
|
||||
'legacy' => array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user