[Fixed]-Django rest_framework IsAdminUser not behaving

1👍

Typo!

It’s permission_classes, not permissions_classes.


About this part:

The IsAuthenticated permission is working, because if I logout I cget an error saysing that I am not authenticated.

I’m not sure why this is happening but I’d blame DEFAULT_PERMISSION_CLASSES in your Django settings – maybe you have IsAuthenticated specified there?

👤Kos

Leave a comment