fix ontology button display permission check
Test ability on repository, not parent (distributed) ontology.
Merge pull request #729 from ontohub/720-ontology_edit_button

Repairing of check for whether to display ontology edit button. Fixes #720.