Skip to content

Instantly share code, notes, and snippets.

@bogsio
Created December 4, 2013 12:31
Show Gist options
  • Save bogsio/7786744 to your computer and use it in GitHub Desktop.
Save bogsio/7786744 to your computer and use it in GitHub Desktop.
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