fix access rights back office

after applying the fix #742
It is necessary to modify the block "check-resource" in search.html