X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fpart_referral.html;h=daf8773f02706fa7aa147daaf28358da8a205e4a;hb=dd65ba99bb9281571f19744154a3b03bcd3f01ab;hp=7ce52174da748d8dbab8b3848896c9c12241aa85;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git diff --git a/httemplate/edit/part_referral.html b/httemplate/edit/part_referral.html index 7ce52174d..daf8773f0 100755 --- a/httemplate/edit/part_referral.html +++ b/httemplate/edit/part_referral.html @@ -1,9 +1,19 @@ <% include( 'elements/edit.html', 'name' => 'Advertising source', 'table' => 'part_referral', - 'fields' => [ 'referral' ], - 'labels' => { 'referral' => 'Advertising source' }, + 'fields' => [ 'referral', + { field=>'agentnum', type=>'select-agent', }, + ], + 'labels' => { 'referral' => 'Advertising source', + 'agentnum' => 'Agent', + }, 'viewall_dir' => 'browse', - 'html_table_bottom' => include('/elements/tr-select-agent.html'), ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Edit advertising sources') + || $FS::CurrentUser::CurrentUser->access_right('Edit global advertising sources'); + +