broadinstitute / genetic-prevalence-estimator

https://genie.broadinstitute.org/
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Use Django permissions to check if user can view variant list fields #1

Closed nawatts closed 3 years ago

nawatts commented 3 years ago

VariantListSerializer contains some code to determine whether or not some fields should be visible to the current user. These conditions should be defined through rules in models.py and checked through Django's permission system.

https://github.com/broadinstitute/aggregate-frequency-calculator/blob/17d52dcd4708de4a99a7f909441c125a961bb53d/calculator/src/calculator/serializers/variant_list_serializer.py#L123-L141