]> git.mjollnir.org Git - moodle.git/commit
accesslib: get_user_by_capability() - First, handle simple cases
authormartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:22:26 +0000 (23:22 +0000)
committermartinlanghoff <martinlanghoff>
Sun, 6 Jan 2008 23:22:26 +0000 (23:22 +0000)
commit26843e106b3d6a7a0dedb4c661cfc1ea1e008008
tree7f10ebd0bf5a6e4c5e0abe1af942a04634feaf91
parent987e7454425a80919169f52e8ab405dc4a7b5c91
accesslib: get_user_by_capability() - First, handle simple cases

This patch reorganises the conditions and field handling so
we can spot if this is a call we can resolve in a single SQL
query that we just pass back the results.

If there are any PREVENTs or PROHIBITs, we need to delve into
more involved stuff...

MDL-12452
lib/accesslib.php