diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-06-13 16:05:55 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-06-13 17:03:48 +0200 |
commit | 7fe92d998125d3dc8be3544346de8dbd5c64b240 (patch) | |
tree | 297884d64e1e4f44c4ab07f69f6497c29ddd5c7d /app/views/errors | |
parent | 96482886f3536a31977c7fabb1071a59ad6e44f5 (diff) | |
download | gitlab-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.haml | 2 |
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) |