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
0066e681
Commit
0066e681
authored
Jul 10, 2004
by
bugreport%peshkin.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 233486: Only process groups user is supposed to be able to bless in editgroups.cgi
r=justdave a=justdave
parent
dbce51e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
editusers.cgi
editusers.cgi
+2
-1
No files found.
editusers.cgi
View file @
0066e681
...
...
@@ -155,7 +155,7 @@ sub EmitFormElements ($$$$)
print
"<TD COLSPAN=2 ALIGN=LEFT><B>User is a member of these groups</B></TD>\n"
;
while
(
MoreSQLData
())
{
my
(
$groupid
,
$name
,
$description
,
$checked
,
$isderived
,
$isregexp
)
=
FetchSQLData
();
next
if
(
!
$editall
&&
!
UserCanBlessGroup
(
$name
));
next
unless
(
$editall
||
UserCanBlessGroup
(
$name
));
PushGlobalSQLState
();
SendSQL
(
"SELECT user_id "
.
"FROM user_group_map "
.
...
...
@@ -762,6 +762,7 @@ if ($action eq 'update') {
my
$chggrp
=
0
;
SendSQL
(
"SELECT id, name FROM groups"
);
while
(
my
(
$groupid
,
$name
)
=
FetchSQLData
())
{
next
unless
(
$editall
||
UserCanBlessGroup
(
$name
));
if
(
$::FORM
{
"oldgroup_$groupid"
}
!=
(
$::FORM
{
"group_$groupid"
}
?
1
:
0
))
{
# group membership changed
PushGlobalSQLState
();
...
...
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