In https://github.com/piwik/piwik/pull/7641 site access loading was changed to use lazy loading. This causes the UserGroups plugin to break, since it adds/changes access levels in
reloadAccess(). To properly change access levels, we have to make the
It's possible to modify access levels w/o this, but that requires calling the getSitesIdWith... methods before changing access, then calling the method again. This is, however, not as performant, since the
array_unique/array_merge methods will be called twice.
CC @tsteur Will merge it now, but feel free to let me know if there's an issue.