# Path: will/settings.py
# def auto_key():
# def import_settings(quiet=True):
#         DEPRECATED_BUT_MAPPED_SETTINGS = {
#             "USERNAME": "HIPCHAT_USERNAME",
#             "PASSWORD": "HIPCHAT_PASSWORD",
#             "V1_TOKEN": "HIPCHAT_V1_TOKEN",
#             "V2_TOKEN": "HIPCHAT_V2_TOKEN",
#             "TOKEN": "HIPCHAT_V1_TOKEN",
#             "ROOMS": "HIPCHAT_ROOMS",
#             "NAME": "HIPCHAT_NAME",
#             "HANDLE": "HIPCHAT_HANDLE",
#             "DEFAULT_ROOM": "HIPCHAT_DEFAULT_ROOM",
#             "SLACK_DEFAULT_ROOM": "SLACK_DEFAULT_CHANNEL",
#         }
#             IO_BACKENDS = []


import logging
from will import settings
    if getattr(settings, "ACL", None):
        try:
            # Case-insensitive checks
            for k in settings.ACL.keys():
                if k.lower() == acl:
                    acl_members = settings.ACL[k]
                    break
        except AttributeError:
            pass

    return acl_members


def is_acl_allowed(user_id, acl):
    if not getattr(settings, "ACL", None):
        logging.warning(
            "%s was just allowed to perform actions in %s because no ACL settings exist. This can be a security risk." % (
                user_id,
                acl,
            )
        )
        return True
    for a in acl:
        acl_members = get_acl_members(a)
        if user_id in acl_members:
            return True

    return False



# Path: will/settings.py
# def auto_key():
# def import_settings(quiet=True):
#         DEPRECATED_BUT_MAPPED_SETTINGS = {
#             "USERNAME": "HIPCHAT_USERNAME",
#             "PASSWORD": "HIPCHAT_PASSWORD",
#             "V1_TOKEN": "HIPCHAT_V1_TOKEN",
#             "V2_TOKEN": "HIPCHAT_V2_TOKEN",
#             "TOKEN": "HIPCHAT_V1_TOKEN",
#             "ROOMS": "HIPCHAT_ROOMS",
#             "NAME": "HIPCHAT_NAME",
#             "HANDLE": "HIPCHAT_HANDLE",
#             "DEFAULT_ROOM": "HIPCHAT_DEFAULT_ROOM",
#             "SLACK_DEFAULT_ROOM": "SLACK_DEFAULT_CHANNEL",
#         }
#             IO_BACKENDS = []


# Path: will/acl.py
import logging
from will import settings

    if getattr(settings, "ACL", None):
        try:
            # Case-insensitive checks
            for k in settings.ACL.keys():
                if k.lower() == acl:
                    acl_members = settings.ACL[k]
                    break
        except AttributeError:
            pass

    return acl_members


def is_acl_allowed(user_id, acl):
    if not getattr(settings, "ACL", None):
        logging.warning(
            "%s was just allowed to perform actions in %s because no ACL settings exist. This can be a security risk." % (
                user_id,
                acl,
            )
        )
        return True
    for a in acl:
        acl_members = get_acl_members(a)
        if user_id in acl_members:
            return True

    return False



def verify_acl(message, acl):