From 75a2e8dbba40070ced5503457696baf5d538b953 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 23 Jul 2010 00:11:51 +0000 Subject: 'View customers of all agents' doesn't mean create them, or upload inventory, RT#7010 --- FS/FS/access_user.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FS/FS/access_user.pm') diff --git a/FS/FS/access_user.pm b/FS/FS/access_user.pm index 25aa8af..8c8ba8b 100644 --- a/FS/FS/access_user.pm +++ b/FS/FS/access_user.pm @@ -413,10 +413,10 @@ sub agentnum { $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 @@ sub agents { qsearch({ 'table' => 'agent', 'hashref' => { disabled=>'' }, - 'extra_sql' => ' AND '. $self->agentnums_sql, + 'extra_sql' => ' AND '. $self->agentnums_sql(@_), }); } -- cgit v1.1