Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d5c1c6f8
Commit
d5c1c6f8
authored
Jul 28, 2015
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1163399: Autocompletion no longer works when impersonating a user
r=LpSolit,a=simon
parent
2d96c58a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Token.pm
Bugzilla/Token.pm
+2
-1
No files found.
Bugzilla/Token.pm
View file @
d5c1c6f8
...
@@ -38,7 +38,8 @@ sub issue_api_token {
...
@@ -38,7 +38,8 @@ sub issue_api_token {
# Generates a random token, adds it to the tokens table if one does not
# Generates a random token, adds it to the tokens table if one does not
# already exist, and returns the token to the caller.
# already exist, and returns the token to the caller.
my
$dbh
=
Bugzilla
->
dbh
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$user
=
Bugzilla
->
user
;
# Allow certain UI components to work if impersonating another user.
my
$user
=
Bugzilla
->
sudoer
||
Bugzilla
->
user
;
my
(
$token
)
=
$dbh
->
selectrow_array
(
"
my
(
$token
)
=
$dbh
->
selectrow_array
(
"
SELECT token FROM tokens
SELECT token FROM tokens
WHERE userid = ? AND tokentype = 'api_token'
WHERE userid = ? AND tokentype = 'api_token'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment