Fixed bug that admin, functions and chief was shown to user when he had the needed permissions but not was member of a group.
Fixed better chosen search