fix ontology button display permission check

fixes #720