Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.5
-
Fix Version/s: None
-
Component/s: Roles / Access
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
The problem is that group mode does work when the capability used in get_users_by_capability() is allowed in frontpage or default role.
see http://moodle.org/mod/forum/discuss.php?d=135649
Eloy proposed a solution to use u.id instead which makes sense imo, needs a lot more testing, will not be in 1.9.6
By the way, get_users_by_capability has reasonably good unit tests in 2.0. Might be worth doing the development there and backporting.