ezsystems/ezpublish-kernel — pull request #1001 by Nicals (2014-09-23 13:21:16+00:00)
Title: fix usergroup fetch permission

Loading user group of a user checks edit permission on the $user. Since loadUserGroupsOfUser is a read-only method, it is more relevant to check for check read-only permissions.

See comment on ca7f938c6ac8637cddbbfb28e6c8acf19c2c36c6