def any_user(user_id): """ Returns True if user_id is in the allowed users database table @param user_id: Google User ID @return: Boolean True or False """ if user_id: user_check = Users.get_by_id(user_id) if user_check: return True return False
def owner_user(user_id): """ Returns True if the user_id is in the allowed users database and owner == True @param user_id: Google User ID @return: Boolean True or False """ if user_id: user_check = Users.get_by_id(user_id) if user_check: if user_check.owner: return True return False