summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/lib/Piny/User.pm
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 23:25:48 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2010-06-29 23:25:48 -0700
commit7caba661a9c9602bc9430c0259bba6fa814a6868 (patch)
tree45f205cdf5b011b30264bddb16827a903c24b406 /usr/src/libpiny/lib/Piny/User.pm
parentfcf55000bc78e6c50e08a18d54808e67746625c7 (diff)
downloadpiny-code-7caba661a9c9602bc9430c0259bba6fa814a6868.tar.gz
piny-code-7caba661a9c9602bc9430c0259bba6fa814a6868.zip
Oh yeah, return *true* if the user is in the group.
Diffstat (limited to 'usr/src/libpiny/lib/Piny/User.pm')
-rw-r--r--usr/src/libpiny/lib/Piny/User.pm2
1 files changed, 1 insertions, 1 deletions
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;