I have a view class inherited from RetrieveUpdateDestroyAPIView. I need to have different permission classes for different method so I am over writing get_permissions method and returning [IsAuthenticated(), IsSuperAdmin()|IsOwner()|IsAdmin(), ] but I'm getting below mentioned error
TypeError: unsupported operand type(s) for |: 'IsSuperAdmin' and 'IsOwner.
SO link: https://stackoverflow.com/questions/75202245/composite-permissions-drf
Thanks.