Created
May 7, 2023 13:32
-
-
Save o-nnerb/d184bf8e54f5725a9a24b97b42f8a31a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check if a user has an "admin" type | |
def check_admin_permission(user): | |
if user.type == 'admin': | |
return True | |
else: | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment