Use User::groupHasPermission
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 9 Mar 2013 22:01:45 +0000 (23:01 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Sat, 9 Mar 2013 22:01:45 +0000 (23:01 +0100)
commit51ed2b35c14b5fa080e5415c25d046e7ea45cbe4
treeacc83e994b22d541a4216a2b26811af274656d3c
parentcb395592bfaefa911783c81d7a5c87517fe148bb
Use User::groupHasPermission

Instead of getting the rights of group '*' and searching for 'read',
there is a method to do a direct lookup for group '*' and right 'read',
makes the code easier to read.

Change-Id: I1d5d6e1f4a94ded2b3f87144e031d0c2aac62020
includes/api/ApiMain.php