Added support for permissions in ontology and plugin, close #49