mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-12523 accesslib: get_user_by_capability() - Handle the complex case
With this commit, we can handle the complex cases with - correct pagination, but not very efficient over large datasets - mostly-correct application of the override rules The structure of the code is fairly complex in that we want to do it without holding all the recs in memory, so we use a small state machine. We have to handle the complex override rules over 1 or 2 permissions (when $doanything is set) so it all ends up quite complex. There is one known issue with this code, in cases where the default role ends up as the decider between 2 conflicting RAs, we fail to apply it. This will need a bit of reorg of how the loop works. MDL-12452
- Loading branch information
martinlanghoff
committed
Jan 6, 2008
1 parent
b8dc2b7
commit ba702c6
Showing
1 changed file
with
206 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters