This is a function that takes an array of users as an argument and checks if the role is an admin
Project description
Admin Protected Route
This is a function that takes an array of users as an argument and checks if the role is an admin. If that isn't the case, the function returns an unauthorized status code and message. Otherwise, the user is permitted to use the function.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size admin_rights-0.0.1.tar.gz (2.6 kB) | File type Source | Python version None | Upload date | Hashes View |