Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.6.7, 2.7.4, 2.8.2, 2.9
-
Component/s: Roles / Access
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
-
Fixed Branches:MOODLE_27_STABLE, MOODLE_28_STABLE
-
Pull from Repository:
-
Pull Master Branch:
-
Pull Master Diff URL:
Description
The statement used in get_capability_info() in accesslib.php to get all capabilities is:
$caps = $DB->get_records('capabilities', array(), 'id, name, captype, riskbitmask');
|
This obviously returns the records required but seems slightly wrong as the id is unique, so the rest of the sort parameters are redundant.