djoser icon indicating copy to clipboard operation
djoser copied to clipboard

`resend_activation` action uses `password_reset` permission from settings

Open 73VW opened this issue 1 year ago • 1 comments

Hello there,

As mentionned in the title of this issue, resend_activation action uses the password_reset permission from the settings:

    def get_permissions(self):
        ...
        elif self.action == "resend_activation":
            self.permission_classes = settings.PERMISSIONS.password_reset
        ...

What is the reason of this? In my opinion, it should use its own permession or at least the activation permission.

I can open a PR in order to fix this if needed.

73VW avatar Sep 07 '23 12:09 73VW