RISK_ADMIN replaced with RISK_CONFIG

This commit is contained in:
skodak 2006-09-19 07:33:22 +00:00
parent 0fd332a811
commit a6b02b652b
4 changed files with 6 additions and 6 deletions

View File

@ -55,7 +55,7 @@ foreach ($capabilities as $capability) {
if (RISK_MANAGETRUST & (int)$capability->riskbitmask) {
echo "T";
}
if (RISK_ADMIN & (int)$capability->riskbitmask) {
if (RISK_CONFIG & (int)$capability->riskbitmask) {
echo "A";
}
if (RISK_XSS & (int)$capability->riskbitmask) {

View File

@ -88,7 +88,7 @@ if ($courseid) {
if (RISK_MANAGETRUST & (int)$capability->riskbitmask) {
echo "T";
}
if (RISK_ADMIN & (int)$capability->riskbitmask) {
if (RISK_CONFIG & (int)$capability->riskbitmask) {
echo "A";
}
if (RISK_XSS & (int)$capability->riskbitmask) {

View File

@ -32,7 +32,7 @@ define('CONTEXT_BLOCK', 80);
// capability risks - see http://docs.moodle.org/en/Hardening_new_Roles_system
define('RISK_MANAGETRUST', 0x0001);
define('RISK_ADMIN', 0x0002);
define('RISK_CONFIG', 0x0002);
define('RISK_XSS', 0x0004);
define('RISK_PERSONAL', 0x0008);
define('RISK_SPAM', 0x0010);

View File

@ -34,7 +34,7 @@
$moodle_capabilities = array(
'moodle/site:doanything' => array(
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_ADMIN,
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
'captype' => 'admin',
'contextlevel' => CONTEXT_SYSTEM
),
@ -74,7 +74,7 @@ $moodle_capabilities = array(
'moodle/legacy:admin' => array(
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_ADMIN,
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
'captype' => 'legacy',
'contextlevel' => CONTEXT_SYSTEM
),
@ -82,7 +82,7 @@ $moodle_capabilities = array(
'moodle/site:config' => array(
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_ADMIN,
'riskbitmask' => RISK_SPAM | RISK_PERSONAL | RISK_XSS | RISK_CONFIG,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,