From 2d74cdcf20aea705585e586902458fe9d59b787e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Sun, 18 Nov 2018 19:11:32 -0500 Subject: [PATCH] Enable http status and use it for user login block visibility --- config/sync/block.block.userlogin.yml | 34 +++++++++++++++++++++++++++ config/sync/core.extension.yml | 1 + 2 files changed, 35 insertions(+) create mode 100644 config/sync/block.block.userlogin.yml diff --git a/config/sync/block.block.userlogin.yml b/config/sync/block.block.userlogin.yml new file mode 100644 index 0000000..bea5073 --- /dev/null +++ b/config/sync/block.block.userlogin.yml @@ -0,0 +1,34 @@ +uuid: bace00b3-a26c-4ee1-9aea-8e59f77b6a86 +langcode: en +status: true +dependencies: + module: + - block_visibility_groups + - http_client_error_status + - user + theme: + - agarica +id: userlogin +theme: agarica +region: bottom +weight: 19 +provider: null +plugin: user_login_block +settings: + id: user_login_block + label: 'User login' + provider: user + label_display: visible +visibility: + condition_group: + id: condition_group + negate: false + block_visibility_group: '' + context_mapping: { } + http_client_error_status: + id: http_client_error_status + request_401: 0 + request_403: 1 + request_404: 0 + negate: false + context_mapping: { } diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 42fcb79..77100d5 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -76,6 +76,7 @@ module: hal: 0 help: 0 history: 0 + http_client_error_status: 0 image: 0 layout_discovery: 0 link: 0