Hello everyone, <https://stackoverflow.com/posts/75202245/timeline>
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. -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/7d9538ec-7b9f-4956-9d2e-70cee0fbe637n%40googlegroups.com.