allowing the ability to set the discovery_permissions