From 7caba661a9c9602bc9430c0259bba6fa814a6868 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 29 Jun 2010 23:25:48 -0700 Subject: Oh yeah, return *true* if the user is in the group. --- usr/src/libpiny/lib/Piny/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/src/libpiny/lib/Piny/User.pm b/usr/src/libpiny/lib/Piny/User.pm index ccdf714..559adfd 100644 --- a/usr/src/libpiny/lib/Piny/User.pm +++ b/usr/src/libpiny/lib/Piny/User.pm @@ -81,7 +81,7 @@ sub has_group { my ( $s, $group ) = @_; foreach my $owngroup ( @{$s->groups( )} ) { - return if $owngroup->gid( ) == $group->gid( ); + return 1 if $owngroup->gid( ) == $group->gid( ); }; return; -- cgit v1.2.3