Into the function 'tags_check_acl' fixed check for profile all with some tag. And added function 'tags_check_acl_by_module'
Added function 'modules_get_agent_group'
Moved the global var '' to upside of code
Fixed the access (and listing in global search) to module with ACL tags. Ticket #1472