Exemplo n.º 1
0
def deleteAPIUser(current_user, public_id):
    return IPContainer.deleteAPIUser(public_id)
Exemplo n.º 2
0
def deleteAPIUser(current_user, public_id):
    if current_user._admin:
        return IPContainer.deleteAPIUser(public_id)

    return jsonify(message="You're not an admin.")