projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
04ea927
)
respect part_svc.selfservice_access hidden provisioning services in stock portal...
author
Ivan Kohler
<ivan@freeside.biz>
Mon, 14 Jan 2013 23:14:04 +0000
(15:14 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Mon, 14 Jan 2013 23:14:04 +0000
(15:14 -0800)
FS/FS/ClientAPI/MyAccount.pm
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI/MyAccount.pm
b/FS/FS/ClientAPI/MyAccount.pm
index
92fcd0c
..
6ce6586
100644
(file)
--- a/
FS/FS/ClientAPI/MyAccount.pm
+++ b/
FS/FS/ClientAPI/MyAccount.pm
@@
-1586,7
+1586,10
@@
sub list_pkgs {
pkg_label => $_->pkg_label,
status => $_->status,
part_svc =>
pkg_label => $_->pkg_label,
status => $_->status,
part_svc =>
- [ map $_->hashref, $_->available_part_svc ],
+ [ map { $_->hashref }
+ grep { $_->selfservice_access ne 'hidden' }
+ $_->available_part_svc
+ ],
cust_svc =>
[ map { my $ref = { $_->hash,
label => [ $_->label ],
cust_svc =>
[ map { my $ref = { $_->hash,
label => [ $_->label ],
@@
-1600,7
+1603,9
@@
sub list_pkgs {
$ref->{svchash}->{svcpart} = $_->part_svc->svcpart
if $_->part_svc->svcdb eq 'svc_phone'; # hack
$ref;
$ref->{svchash}->{svcpart} = $_->part_svc->svcpart
if $_->part_svc->svcdb eq 'svc_phone'; # hack
$ref;
- } $_->cust_svc
+ }
+ grep { $_->part_svc->selfservice_access ne 'hidden' }
+ $_->cust_svc
],
primary_cust_svc =>
$primary_cust_svc
],
primary_cust_svc =>
$primary_cust_svc