MDL-37855 log: Add current user group checking.

Prevent user to see all logs if he has not have such priviliges. If
separate groups selected and user has more then 1 group then show all his
groups and only users inside those groups.