def is_admin(user):
    """
    :param user:
    :return True, (str): if user is admin
    :return False, (str): is user is not admin
    """
    if 'isAdmin' in user and user['isAdmin'] is True:
        return True, None
    return False, 'user is not authorized'