Commit 8dbb1e34 authored by Committed by GraceDB
Add "switch-based" public access decorator
When applied, this makes a view publicly available *if* the settings.UNAUTHENTICATED_ACCESS switch is True; otherwise you must be authenticated. This will be useful to propagate to most other views to make this settings switch globally effective at some point.
Showing with 18 additions and 2 deletions