[freeside-commits] freeside/FS/FS access_user.pm,1.27,1.28

Ivan,,, ivan at wavetail.420.am
Thu Jul 22 17:11:53 PDT 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv13713/FS/FS

Modified Files:
	access_user.pm 
Log Message:
'View customers of all agents' doesn't mean create them, or upload inventory, RT#7010

Index: access_user.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/access_user.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -w -d -r1.27 -r1.28
--- access_user.pm	17 Jun 2010 02:08:52 -0000	1.27
+++ access_user.pm	23 Jul 2010 00:11:51 -0000	1.28
@@ -413,10 +413,10 @@
   $sth->fetchrow_arrayref->[0];
 }
 
-=item agents
+=item agents [ HASHREF | OPTION => VALUE ... ]
 
 Returns the list of agents this user can view (via group membership), as
-FS::agent objects.
+FS::agent objects.  Accepts the same options as the agentnums_sql method.
 
 =cut
 
@@ -425,7 +425,7 @@
   qsearch({
     'table'     => 'agent',
     'hashref'   => { disabled=>'' },
-    'extra_sql' => ' AND '. $self->agentnums_sql,
+    'extra_sql' => ' AND '. $self->agentnums_sql(@_),
   });
 }
 



More information about the freeside-commits mailing list