access without scope
This commit is contained in:
parent
4830602d50
commit
2de2f5adc3
1 changed files with 6 additions and 2 deletions
|
|
@ -106,9 +106,13 @@ class UserPlanViewSet(mixins.RetrieveModelMixin,
|
|||
GenericViewSet):
|
||||
serializer_class = UserPlanSerializer
|
||||
permission_classes = [IsAuthenticatedOrTokenMatchesOASRequirements]
|
||||
# required_alternate_scopes = {
|
||||
# "GET": [["promotions.user.plans:list-retrieve"]],
|
||||
# "POST": [["promotions.user.plans:list-retrieve"]],
|
||||
# }
|
||||
required_alternate_scopes = {
|
||||
"GET": [["promotions.user.plans:list-retrieve"]],
|
||||
"POST": [["promotions.user.plans:list-retrieve"]],
|
||||
"GET": [[]],
|
||||
"POST": [[]],
|
||||
}
|
||||
|
||||
def get_queryset(self):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue