diff options
author | Zeger-Jan van de Weg <mail@zjvandeweg.nl> | 2016-01-25 20:08:29 +0100 |
---|---|---|
committer | Zeger-Jan van de Weg <mail@zjvandeweg.nl> | 2016-01-26 16:56:34 +0100 |
commit | 758177d14cd946ed1bd8d9bd9609d9d8d4a378dc (patch) | |
tree | 628c78bd78361fe6dcf48263ae6f1dd6346faa58 /app/views/doorkeeper | |
parent | a9aa97b7271bec66ab4fd86dbf5586fd35fc0049 (diff) | |
download | gitlab-ce-758177d14cd946ed1bd8d9bd9609d9d8d4a378dc.tar.gz |
Warn admin of granting admin rights during OAuth
Fixes #3951
Warning style the same as the warning a user sees on a archived project.
Diffstat (limited to 'app/views/doorkeeper')
-rw-r--r-- | app/views/doorkeeper/authorizations/new.html.haml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/doorkeeper/authorizations/new.html.haml b/app/views/doorkeeper/authorizations/new.html.haml index 15f9ee266c1..185182a10de 100644 --- a/app/views/doorkeeper/authorizations/new.html.haml +++ b/app/views/doorkeeper/authorizations/new.html.haml @@ -4,6 +4,13 @@ Authorize %strong.text-info= @pre_auth.client.name to use your account? + + - if current_user.admin? + .text-warning.prepend-top-20 + %p + = icon("exclamation-triangle fw") + Caution! You are admin, and thus will grant admin permission to #{@pre_auth.client.name}. + - if @pre_auth.scopes #oauth-permissions %p This application will be able to: @@ -25,4 +32,4 @@ = hidden_field_tag :state, @pre_auth.state = hidden_field_tag :response_type, @pre_auth.response_type = hidden_field_tag :scope, @pre_auth.scope - = submit_tag "Deny", class: "btn btn-danger prepend-left-10"
\ No newline at end of file + = submit_tag "Deny", class: "btn btn-danger prepend-left-10" |