hudmol/archivesspace — pull request #127 by marktriggs (2012-11-05 03:10:14+00:00)
Title: Added an initial implementation of Accession suppression

Quite a few bits to this:

* A new controller for /repositories/123/accession/2/suppressed that you can
POST to mark an accession as suppressed or unsuppressed

* Suppression is enforced based on the logged in user's permissions. If they
have permission to manage the repository, they'll see suppressed records.

* Backend models now have an 'enable_suppression' directive. This triggers
the underlying Sequel dataset to automatically apply suppressions where
applicable, so that only records that haven't been suppressed get returned

* When an accession is suppressed, any events that link to it become
candidates for being suppressed too. When all of the records linked from
an event have been suppressed, the event gets suppressed as well.