Created
December 4, 2013 12:31
-
-
Save bogsio/7786744 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def userlist(user): | |
if user is None or not user.is_admin: | |
return None | |
return 'This is the whole registered user list. [Sensitive data]' | |
def inventory(user): | |
if user is None or not user.is_admin: | |
return None | |
return 'This is the inventory resource. [Sensitive data]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment