Skip to content

Tag: flask-restful

Python decorator – Check if user is admin

I am creating simple API using flask, and I want to check if user which is trying to access is admin. This is function which should decide if user is admin or not And this is endpoint I am getting this error I don’t know where is the problem, I did this according this documentation. Could someone help m…