def get_permission_decorator():
    if getattr(settings, 'CENTAUR_PERMISSION_DECORATOR', None):
        module, decorator = settings.CENTAUR_PERMISSION_DECORATOR.rsplit('.', 1)
        return getattr(import_module(module), decorator)
    return user_passes_test(lambda u: u.is_superuser)