Merge branch 'MDL-78811-Master' of https://github.com/aydevworks/moodle

This commit is contained in:
Andrew Nicols 2023-08-25 00:02:13 +08:00
commit 339f36fae2
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -76,7 +76,7 @@ class defaultuserrole extends check {
}
// Risky caps - usually very dangerous.
$sql = "SELECT rc.contextid, rc.capability
$sql = "SELECT rc.id, rc.contextid, rc.capability
FROM {role_capabilities} rc
JOIN {capabilities} cap ON cap.name = rc.capability
WHERE " . $DB->sql_bitand('cap.riskbitmask', (RISK_XSS | RISK_CONFIG | RISK_DATALOSS)) . " <> 0