From a23da324a647296a31436631b958bc3443ceaaf2 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Fri, 14 Oct 2005 06:58:24 +0000 Subject: Bug 204498 Add su (setuser) function Patch by A. Karl Kornel r=joel, a=justdave --- template/en/default/admin/sudo.html.tmpl | 84 ++++++++++++++++++++++ template/en/default/admin/users/userdata.html.tmpl | 4 +- 2 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 template/en/default/admin/sudo.html.tmpl (limited to 'template/en/default/admin') diff --git a/template/en/default/admin/sudo.html.tmpl b/template/en/default/admin/sudo.html.tmpl new file mode 100644 index 000000000..ea4f0f38e --- /dev/null +++ b/template/en/default/admin/sudo.html.tmpl @@ -0,0 +1,84 @@ +[%# 1.0@bugzilla.org %] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # The Initial Developer of the Original Code is Netscape Communications + # Corporation. Portions created by Netscape are + # Copyright (C) 2005 Netscape Communications Corporation. All + # Rights Reserved. + # + # Contributor(s): A. Karl Kornel + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% PROCESS global/header.html.tmpl + title = "Begin sudo session" + style_urls = ['skins/standard/admin.css'] + %] + +[% DEFAULT target_login = "" %] + +

+ The sudo feature of [% terms.Bugzilla %] allows you to impersonate a + user for a short time While an sudo session is in progress, every action you + perform will be taking place as if you had logged in as the user whom will be + impersonating. +

+ +

+ This is a very powerful feature; you should be very careful while using it. + Your actions may be logged more carefully than normal. +

+ +
+

+ To begin, + [% IF Param('usemenuforusers') %] + select + [% ELSE %] + enter the login of + [% END %] + the user to impersonate: + [% INCLUDE global/userselect.html.tmpl + name => "target_login" + value => "$target_login_default" + accesskey => "u" + size => 30 + multiple => 5 + %] +

+ + [% IF !Param('usemenuforusers') %] +

+ The username must be entered exactly. No matching will be performed. +

+ [% END %] + +

+ Next, click the button to begin the session: + + +

+ + [% IF will_logout %] +

+ When you press the button, you may be logged out and asked to log in + again. This is done for two reasons. First of all, it is done to reduce + the chances of someone doing large amounts of damage using your + already-logged-in account. Second, it is there to force you to take the + time to consider if you really need to use this feature. +

+ [% END %] +
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl index 43ee627f1..ab2e9de62 100644 --- a/template/en/default/admin/users/userdata.html.tmpl +++ b/template/en/default/admin/users/userdata.html.tmpl @@ -29,7 +29,9 @@ id="login" value="[% otheruser.login FILTER html %]" /> [% IF editform %] + value="[% otheruser.login FILTER html %]" />
+ Impersonate this user [% END %] [% ELSE %] [% otheruser.login FILTER html %] -- cgit v1.2.3-24-g4f1b