MODE-2117 Updated session.hasPermission so that when readonly-connectors are present, the method returns false for anything else other than the READ and INDEX_WORKSPACE actions.