restore only_allowed in dbsearch