diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-12-19 16:15:58 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-31 18:51:17 +0300 |
commit | 084b7edb17d25a3d43526cca560569dd82c5c09d (patch) | |
tree | eff6234322aec4cb438d4751bb7adb1c19cfd5cc /app/views/projects/triggers | |
parent | 9f67b886b2cf425329a4dc792e6c41cf571ab102 (diff) |
Do not expose trigger token when user should not see it
Diffstat (limited to 'app/views/projects/triggers')
-rw-r--r-- | app/views/projects/triggers/_trigger.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/triggers/_trigger.html.haml b/app/views/projects/triggers/_trigger.html.haml index 7e4618e1a88..6f6f1e5e0c5 100644 --- a/app/views/projects/triggers/_trigger.html.haml +++ b/app/views/projects/triggers/_trigger.html.haml @@ -1,6 +1,6 @@ %tr %td - - if can?(current_user, :admin_trigger, trigger) + - if trigger.has_token_exposed? %span= trigger.token = clipboard_button(text: trigger.token, title: "Copy trigger token to clipboard") - else |