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
c1d16e42
Commit
c1d16e42
authored
Feb 20, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 282124: Remove globals.pl and CGI.pl from editclassifications.cgi
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=vladd, a=justdave
parent
d7958942
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
editclassifications.cgi
editclassifications.cgi
+9
-6
No files found.
editclassifications.cgi
View file @
c1d16e42
...
...
@@ -16,6 +16,7 @@
# The Initial Developer of the Original Code is Albert Ting
#
# Contributor(s): Albert Ting <alt@sonic.net>
# Max Kanat-Alexander <mkanat@kerio.com>
#
# Direct any questions on this source code to mozilla.org
...
...
@@ -24,19 +25,21 @@ use lib ".";
use
Bugzilla
;
use
Bugzilla::
Constants
;
require
"CGI.pl"
;
require
"globals.pl"
;
use
Bugzilla::
Util
;
use
Bugzilla::
Error
;
use
Bugzilla::
Config
;
my
$cgi
=
Bugzilla
->
cgi
;
my
$dbh
=
Bugzilla
->
dbh
;
my
$template
=
Bugzilla
->
template
;
my
$vars
=
{};
use
vars
qw ($template
$vars
);
# TestClassification: just returns if the specified classification does exists
# TestClassification: just returns if the specified classification does exist
# CheckClassification: same check, optionally emit an error text
sub
TestClassification
($)
{
my
$cl
=
shift
;
my
$dbh
=
Bugzilla
->
dbh
;
trick_taint
(
$cl
);
# does the classification exist?
...
...
@@ -78,7 +81,7 @@ Bugzilla->login(LOGIN_REQUIRED);
print
$cgi
->
header
();
UserInGroup
(
"editclassifications"
)
exists
Bugzilla
->
user
->
groups
->
{
'editclassifications'
}
||
ThrowUserError
(
"auth_failure"
,
{
group
=>
"editclassifications"
,
action
=>
"edit"
,
object
=>
"classifications"
});
...
...
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