aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/my
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/my')
-rw-r--r--templates/web/base/my/my.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/web/base/my/my.html b/templates/web/base/my/my.html
index 68fbc2ee8..e10dd96c8 100644
--- a/templates/web/base/my/my.html
+++ b/templates/web/base/my/my.html
@@ -61,6 +61,9 @@ li .my-account-buttons a {
<p class="my-account-buttons">
<a href="/auth/change_password">[% loc('Change password') %]</a>
+ [% IF c.user AND (c.user.from_body OR c.user.is_superuser) %]
+ <a href="/auth/generate_token">[% loc('Generate token') %]</a>
+ [% END %]
<a href="/auth/sign_out">[% loc('Sign out') %]</a>
</p>