summaryrefslogtreecommitdiff
path: root/FS/FS/access_user.pm
diff options
context:
space:
mode:
authorivan <ivan>2010-07-23 00:11:51 +0000
committerivan <ivan>2010-07-23 00:11:51 +0000
commit75a2e8dbba40070ced5503457696baf5d538b953 (patch)
tree563215b9d65d2b9e60da25bc7100470899281f10 /FS/FS/access_user.pm
parent8c2973184d9e8e357f433b7380c7884454cc0293 (diff)
'View customers of all agents' doesn't mean create them, or upload inventory, RT#7010
Diffstat (limited to 'FS/FS/access_user.pm')
-rw-r--r--FS/FS/access_user.pm6
1 files changed, 3 insertions, 3 deletions
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(@_),
});
}