projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35fef4f
)
allow all legal packages to be chosen in selfservice quotations
author
Mark Wells
<mark@freeside.biz>
Mon, 27 Apr 2015 06:26:50 +0000
(23:26 -0700)
committer
Mark Wells
<mark@freeside.biz>
Mon, 27 Apr 2015 06:26:50 +0000
(23:26 -0700)
FS/FS/ClientAPI/MyAccount/quotation.pm
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI/MyAccount/quotation.pm
b/FS/FS/ClientAPI/MyAccount/quotation.pm
index
ce2debd
..
90c2ace
100644
(file)
--- a/
FS/FS/ClientAPI/MyAccount/quotation.pm
+++ b/
FS/FS/ClientAPI/MyAccount/quotation.pm
@@
-136,7
+136,10
@@
sub quotation_add_pkg {
my $part_pkg = FS::part_pkg->by_key($pkgpart);
- if (!$part_pkg or !$allowed_pkgpart->{$pkgpart}) {
+ if (!$part_pkg or
+ (!$allowed_pkgpart->{$pkgpart} and
+ $cust_main->agentnum != ($part_pkg->agentnum || 0))
+ ) {
warn "disallowed quotation_pkg pkgpart $pkgpart\n"
if $DEBUG;
return { 'error' => "unknown package $pkgpart" };