Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AceSevenFive/524ea128d65c23d02e8819e1eb2844a0 to your computer and use it in GitHub Desktop.
Save AceSevenFive/524ea128d65c23d02e8819e1eb2844a0 to your computer and use it in GitHub Desktop.
async def checkPermissions(user, permrequired):
with open(user + ".txt", "r") as file:
return (yaml.load(file)[permrequired] == True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment