Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
3d7ec6cf
Commit
3d7ec6cf
authored
Jan 09, 2008
by
Leigh B. Stoller
Browse files
Fix bug in AccessCheck() for editing groups.
parent
eb813655
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Group.pm.in
View file @
3d7ec6cf
...
...
@@ -407,7 +407,6 @@ sub EditGroup($$$$)
#
#
First
pass
does
checks
.
Second
pass
does
the
real
thing
.
#
my
$
g_pid
=
$
group
->
pid
();
my
$
g_gid
=
$
group
->
gid
();
my
$
target_user
;
...
...
@@ -487,7 +486,7 @@ sub EditGroup($$$$)
foreach
$
target_user
(@
nonmembers
)
{
$
target_uid
=
$
target_user
->
uid
();
$
target_idx
=
$
target_user
->
uid_idx
();
$
foo
=
"add_$target_idx"
;
$
foo
=
"add_$target_idx"
;
if
(
exists
($
argref
->{$
foo
})
&&
$
argref
->{$
foo
}
eq
"permit"
){
#
...
...
@@ -785,7 +784,9 @@ sub AccessCheck($$$)
#
Only
project_root
or
group_root
in
default
group
#
may
grab
(
involuntarily
add
)
users
into
groups
.
#
$
gid
=
$
pid
;
if
(
! $self->IsProjectGroup()) {
return
$
self
->
GetProject
()->
AccessCheck
($
user
,
$
access_type
);
}
$
mintrust
=
PROJMEMBERTRUST_GROUPROOT
;
}
elsif
($
access_type
==
TB_PROJECT_DELUSER
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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