summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2010-06-17 02:08:53 +0000
committerivan <ivan>2010-06-17 02:08:53 +0000
commit8966833a87b9a002c9d72c56832e35b55628dc81 (patch)
tree5ebe5128d453eb940580b1876b2218d1db8d87be /httemplate/edit
parent259921ee5e89a68fc79b2a358643c558ebb4fdaa (diff)
Add "View customers of all agents" access rights, RT#7010
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/process/elements/process.html1
-rw-r--r--httemplate/edit/prospect_main.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/edit/process/elements/process.html b/httemplate/edit/process/elements/process.html
index ebbc2f778..53419cde0 100644
--- a/httemplate/edit/process/elements/process.html
+++ b/httemplate/edit/process/elements/process.html
@@ -207,6 +207,7 @@ if ( $opt{'agent_virt'} ) {
die "illegal agentnum"
unless $curuser->agentnums_href->{$new->agentnum}
+ or $curuser->access_right('View customers of all agents')
or $opt{'agent_null_right'}
&& ! $new->agentnum
&& $curuser->access_right($opt{'agent_null_right'});
diff --git a/httemplate/edit/prospect_main.html b/httemplate/edit/prospect_main.html
index 90f971a91..e867907ed 100644
--- a/httemplate/edit/prospect_main.html
+++ b/httemplate/edit/prospect_main.html
@@ -109,6 +109,6 @@ my $m2_error_callback = sub {
$cgi->param;
};
-my @agentnums = $FS::CurrentUser::CurrentUser->agentnums;
+#my @agentnums = $FS::CurrentUser::CurrentUser->agentnums;
</%init>