CDR type separation and summary formats, #15535
[freeside.git] / FS / FS / access_group.pm
index 2519040..11b2640 100644 (file)
@@ -1,14 +1,11 @@
 package FS::access_group;
 
 use strict;
-use vars qw( @ISA );
+use base qw(FS::m2m_Common FS::m2name_Common FS::Record);
 use FS::Record qw( qsearch qsearchs );
-use FS::m2name_Common;
 use FS::access_groupagent;
 use FS::access_right;
 
-@ISA = qw(FS::m2m_Common FS::m2name_Common FS::Record);
-
 =head1 NAME
 
 FS::access_group - Object methods for access_group records
@@ -140,7 +137,7 @@ test if this group has the given RIGHTNAME.
 =cut
 
 sub access_right {
-  my( $self, $name ) = shift;
+  my( $self, $name ) = @_;
   qsearchs('access_right', { 'righttype'   => 'FS::access_group',
                              'rightobjnum' => $self->groupnum,
                              'rightname'   => $name,