diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-11-13 12:47:43 +0100 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-11-13 12:47:48 +0100 |
commit | ade23934a17daac397beadc0b7346440cba41926 (patch) | |
tree | 2170b3a43ce2c4b92d7c5c3ebe6c474a3388b3a8 /app/views/doorkeeper | |
parent | 95661d7b6220d6b0608f2582b3a89b5b743c1b0e (diff) | |
download | gitlab-ce-ade23934a17daac397beadc0b7346440cba41926.tar.gz |
Prevent error when authorizing an admin-created OAauth application without a set owner
Diffstat (limited to 'app/views/doorkeeper')
-rw-r--r-- | app/views/doorkeeper/authorizations/new.html.haml | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/app/views/doorkeeper/authorizations/new.html.haml b/app/views/doorkeeper/authorizations/new.html.haml index 85e4170aee9..6d9c6b5572a 100644 --- a/app/views/doorkeeper/authorizations/new.html.haml +++ b/app/views/doorkeeper/authorizations/new.html.haml @@ -1,5 +1,3 @@ -- auth_app_owner = @pre_auth.client.application.owner - %main{ :role => "main" } .modal-no-backdrop.modal-doorkeepr-auth .modal-content @@ -20,9 +18,14 @@ %p An application called = link_to @pre_auth.client.name, @pre_auth.redirect_uri, target: '_blank', rel: 'noopener noreferrer' - is requesting access to your GitLab account. This application was created by - = succeed "." do - = link_to auth_app_owner.name, user_path(auth_app_owner) + is requesting access to your GitLab account. + + - auth_app_owner = @pre_auth.client.application.owner + - if auth_app_owner + This application was created by + = succeed "." do + = link_to auth_app_owner.name, user_path(auth_app_owner) + Please note that this application is not provided by GitLab and you should verify its authenticity before allowing access. - if @pre_auth.scopes |