Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-02-09 18:21:09 +0300
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-03-01 01:15:40 +0300
commitf0ea7130f7bf0e7a3702d863b4d246f524b6c14a (patch)
treeec626d2d42c7942fa1cbc1505275ed7d4de52fa5 /app/views/profiles
parentc2b1cdef7e8cdaec35bd0844301ce8f06ed742b7 (diff)
refactors documentation and personal access tokens form to not allow admins to generate non impersionation tokens
Diffstat (limited to 'app/views/profiles')
-rw-r--r--app/views/profiles/personal_access_tokens/_form.html.haml2
-rw-r--r--app/views/profiles/personal_access_tokens/index.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/profiles/personal_access_tokens/_form.html.haml b/app/views/profiles/personal_access_tokens/_form.html.haml
index 3f6efa33953..286d35d1f3b 100644
--- a/app/views/profiles/personal_access_tokens/_form.html.haml
+++ b/app/views/profiles/personal_access_tokens/_form.html.haml
@@ -1,7 +1,7 @@
- personal_access_token = local_assigns.fetch(:personal_access_token)
- scopes = local_assigns.fetch(:scopes)
-= form_for [:profile, personal_access_token], method: :post, html: { class: 'js-requires-input' } do |f|
+= form_for [user, personal_access_token], method: :post, html: { class: 'js-requires-input' } do |f|
= form_errors(personal_access_token)
diff --git a/app/views/profiles/personal_access_tokens/index.html.haml b/app/views/profiles/personal_access_tokens/index.html.haml
index e35691d7300..c74cc1b6906 100644
--- a/app/views/profiles/personal_access_tokens/index.html.haml
+++ b/app/views/profiles/personal_access_tokens/index.html.haml
@@ -29,7 +29,7 @@
%p.profile-settings-content
Pick a name for the application, and we'll give you a unique token.
- = render "form", personal_access_token: @personal_access_token, scopes: @scopes
+ = render "form", user: :profile, personal_access_token: @personal_access_token, scopes: @scopes
%hr