diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-04-10 09:33:56 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-04-10 09:33:56 -0700 |
commit | bc75a214c30ca0ae7554cc60d4f7754f5ea03366 (patch) | |
tree | 47bd269ba8820c16e5912de0da78e5a7cfbeca62 /httemplate/misc/process/cacti_graphs.cgi | |
parent | ea12223d6a5241ff802a043a2b7c611038d3b355 (diff) | |
parent | 94fefd033f726f9810bdaa905465af435d875a2f (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/misc/process/cacti_graphs.cgi')
-rw-r--r-- | httemplate/misc/process/cacti_graphs.cgi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/misc/process/cacti_graphs.cgi b/httemplate/misc/process/cacti_graphs.cgi index f2baeb455..a4df72288 100644 --- a/httemplate/misc/process/cacti_graphs.cgi +++ b/httemplate/misc/process/cacti_graphs.cgi @@ -4,6 +4,22 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('View customer services'); +# false laziness with view/elements/svc_Common.html +# only doing this to check agent access, don't actually use $svc_x +my %param = $cgi->param('arg'); +my $svcnum = $param{'svcnum'}; +my $svc_x = qsearchs({ + 'select' => 'svc_broadband.*', + 'table' => 'svc_broadband', + 'addl_from' => ' LEFT JOIN cust_svc USING ( svcnum ) '. + ' LEFT JOIN cust_pkg USING ( pkgnum ) '. + ' LEFT JOIN cust_main USING ( custnum ) ', + 'hashref' => { 'svcnum' => $svcnum }, + 'extra_sql' => ' AND '. $FS::CurrentUser::CurrentUser->agentnums_sql( + 'null_right' => 'View/link unlinked services' + ), +}) or die "Unknown svcnum $svcnum in svc_broadband table\n"; + my $server = FS::UI::Web::JSRPC->new('FS::part_export::cacti::process_graphs', $cgi); </%init> |