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
972eed87
Commit
972eed87
authored
Jan 03, 2006
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 313547: When strict_isolation is set, don't allow inappropriate users on new bugs
Patch by Joel Peshkin <bugreport@peshkin.net> r=lpsolit, a=justdave
parent
1874993b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
post_bug.cgi
post_bug.cgi
+22
-0
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+2
-0
No files found.
post_bug.cgi
View file @
972eed87
...
...
@@ -257,6 +257,28 @@ if ($cgi->param('keywords') && UserInGroup("editbugs")) {
}
}
if
(
Param
(
"strict_isolation"
))
{
my
@blocked_users
=
();
my
%
related_users
=
%
ccids
;
$related_users
{
$cgi
->
param
(
'assigned_to'
)}
=
1
;
if
(
Param
(
'useqacontact'
)
&&
$cgi
->
param
(
'qa_contact'
))
{
$related_users
{
$cgi
->
param
(
'qa_contact'
)}
=
1
;
}
foreach
my
$pid
(
keys
%
related_users
)
{
my
$related_user
=
Bugzilla::
User
->
new
(
$pid
);
if
(
!
$related_user
->
can_edit_product
(
$product_id
))
{
push
(
@blocked_users
,
$related_user
->
login
);
}
}
if
(
scalar
(
@blocked_users
))
{
ThrowUserError
(
"invalid_user_group"
,
{
'users'
=>
\
@blocked_users
,
'new'
=>
1
,
'product'
=>
$product
});
}
}
# Check for valid dependency info.
foreach
my
$field
(
"dependson"
,
"blocked"
)
{
if
(
UserInGroup
(
"editbugs"
)
&&
$cgi
->
param
(
$field
))
{
...
...
template/en/default/global/user-error.html.tmpl
View file @
972eed87
...
...
@@ -685,6 +685,8 @@
[%+ field_descs.product FILTER html %]
[% IF bug_id %]
for [% terms.bug %] '[% bug_id FILTER html %]'.
[% ELSIF new %]
and may not be included on a new [% terms.bug %].
[% ELSE %]
for at least one [% terms.bug %] being changed.
[% END %]
...
...
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