Skip to content

Commit

Permalink
fix: Make SAMLConfiguration viewset readonly (#247)
Browse files Browse the repository at this point in the history
The ony use is a GET request in admin portal so this view need not be post/put friendly right now.
It may actually get removed in an upcoming iteration, or stay readonly.

Fixes: SEC-1418
  • Loading branch information
binodpant authored Apr 15, 2022
1 parent 9714959 commit 283141a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SAMLConfigurationMixin:
serializer_class = SAMLConfigurationSerializer


class SAMLConfigurationViewSet(SAMLConfigurationMixin, viewsets.ModelViewSet):
class SAMLConfigurationViewSet(SAMLConfigurationMixin, viewsets.ReadOnlyModelViewSet):
"""
A View to handle SAMLConfiguration GETs
Expand Down

0 comments on commit 283141a

Please sign in to comment.