MDL-31127 init USER->access when switching roles
commita5a993abc28d38d035fe6e042d230fd6f407a84a
authorPetr Skoda <commits@skodak.org>
Sat, 14 Jan 2012 23:14:44 +0000 (15 00:14 +0100)
committerPetr Skoda <commits@skodak.org>
Sat, 14 Jan 2012 23:15:17 +0000 (15 00:15 +0100)
tree4db7fa25528fb75c13baa84320b0fbff8d537bbf
parentf70f6e9ad1345c985b05c3533dcdadb7c5088b55
MDL-31127 init USER->access when switching roles

Only admins were affected by this problem because has_capability() does not init USER->access for them.
lib/accesslib.php