alphagov/govuk_need_api — pull request #31 by fatbusinessman (2013-12-05 17:53:05+00:00)
Title: Disallow organisation IDs for needs which apply to all orgs

Since the intention is that the `applies_to_all_organisations` flag, if set, overrides the `organisation_ids` field, it makes sense to be explicit and not allow any IDs to be set.

We're only expecting to instantiate a small number of these needs, and not allow extra ones to be set in Maslow itself, so we shouldn't need to worry about someone trying to set this flag on a need that already has organisations set.