fixed NPE
hide search panel if access rights not activated

do not retrieve the search model and show the search mask if the user can't use the search anyway