Bug fix in checking perms for searchbar