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
5a8548ce
Commit
5a8548ce
authored
Feb 16, 2003
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 186994 - Unable to accept a new bug that has been assigned. Patch by gerv;…
Bug 186994 - Unable to accept a new bug that has been assigned. Patch by gerv; r=bbaetz, a=justdave.
parent
550ffb9f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
Bug.pm
Bug.pm
+5
-3
Bug.pm
Bugzilla/Bug.pm
+5
-3
process_bug.cgi
process_bug.cgi
+4
-8
No files found.
Bug.pm
View file @
5a8548ce
...
...
@@ -379,9 +379,11 @@ sub user {
||
(
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
$::userid
==
$self
->
{
'assigned_to'
}{
'id'
}
||
&::
UserInGroup
(
"editbugs"
);
$self
->
{
'user'
}
->
{
'canconfirm'
}
=
(
$::userid
==
0
)
||
&::
UserInGroup
(
"canconfirm"
)
||
&::
UserInGroup
(
"editbugs"
);
$self
->
{
'user'
}
->
{
'canconfirm'
}
=
$::userid
==
0
||
(
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
$::userid
==
$self
->
{
'assigned_to'
}{
'id'
}
||
&::
UserInGroup
(
"editbugs"
)
||
&::
UserInGroup
(
"canconfirm"
);
return
$self
->
{
'user'
};
}
...
...
Bugzilla/Bug.pm
View file @
5a8548ce
...
...
@@ -379,9 +379,11 @@ sub user {
||
(
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
$::userid
==
$self
->
{
'assigned_to'
}{
'id'
}
||
&::
UserInGroup
(
"editbugs"
);
$self
->
{
'user'
}
->
{
'canconfirm'
}
=
(
$::userid
==
0
)
||
&::
UserInGroup
(
"canconfirm"
)
||
&::
UserInGroup
(
"editbugs"
);
$self
->
{
'user'
}
->
{
'canconfirm'
}
=
$::userid
==
0
||
(
$self
->
{
'qa_contact'
}
&&
$::userid
==
$self
->
{
'qa_contact'
}{
'id'
})
||
$::userid
==
$self
->
{
'assigned_to'
}{
'id'
}
||
&::
UserInGroup
(
"editbugs"
)
||
&::
UserInGroup
(
"canconfirm"
);
return
$self
->
{
'user'
};
}
...
...
process_bug.cgi
View file @
5a8548ce
...
...
@@ -310,7 +310,9 @@ my $qacontactid;
################################################################################
# CheckCanChangeField() defines what users are allowed to change what bugs. You
# can add code here for site-specific policy changes, according to the
# instructions given in the Bugzilla Guide and below.
# instructions given in the Bugzilla Guide and below. Note that you may also
# have to update the Bug::user() function to give people access to the options
# that they are permitted to change.
#
# CheckCanChangeField() should return true if the user is allowed to change this
# field, and false if they are not.
...
...
@@ -527,13 +529,7 @@ sub DoComma {
}
sub
DoConfirm
{
if
(
$UserInEditGroupSet
<
0
)
{
$UserInEditGroupSet
=
UserInGroup
(
"editbugs"
);
}
if
(
$UserInCanConfirmGroupSet
<
0
)
{
$UserInCanConfirmGroupSet
=
UserInGroup
(
"canconfirm"
);
}
if
(
$UserInEditGroupSet
||
$UserInCanConfirmGroupSet
)
{
if
(
CheckCanChangeField
(
"canconfirm"
,
$::FORM
{
'id'
},
0
,
1
))
{
DoComma
();
$::query
.=
"everconfirmed = 1"
;
}
...
...
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