fix premission issue while displaying functions in the search form