Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for admin-rights, version 0.0.1
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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page