mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-78811-Master' of https://github.com/aydevworks/moodle
This commit is contained in:
commit
339f36fae2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user