summaryrefslogtreecommitdiff
path: root/app/views/errors
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-06-13 16:05:55 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-06-13 17:03:48 +0200
commit7fe92d998125d3dc8be3544346de8dbd5c64b240 (patch)
tree297884d64e1e4f44c4ab07f69f6497c29ddd5c7d /app/views/errors
parent96482886f3536a31977c7fabb1071a59ad6e44f5 (diff)
downloadgitlab-ce-7fe92d998125d3dc8be3544346de8dbd5c64b240.tar.gz
Render access denied without message
The `errors/access_denied` page should not fail to render when no message is provided. When accessing something as a sessionless user, we should also display the terms message if possible.
Diffstat (limited to 'app/views/errors')
-rw-r--r--app/views/errors/access_denied.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/errors/access_denied.html.haml b/app/views/errors/access_denied.html.haml
index 227c7884915..8ae29b9d337 100644
--- a/app/views/errors/access_denied.html.haml
+++ b/app/views/errors/access_denied.html.haml
@@ -1,4 +1,4 @@
-- message = local_assigns.fetch(:message)
+- message = local_assigns.fetch(:message, nil)
- content_for(:title, 'Access Denied')
= image_tag('illustrations/error-403.svg', alt: '403', lazy: false)