apply permission filter to pnl stream

This commit is contained in:
John Colvin committed 2019-10-02 11:54:38 -05:00
1 parent f74e719a9f
commit 149cd90fb4
1 file changed
+4 -2
+4 -2
View File
@@ -75,8 +75,10 @@ namespace mbts.spark {
.join(sstore, pos => pos.SecurityId)
.Table()
.Cache();
on_pnl = _position_service.subscribei_pnl_data()
.Naggle(interval, scheduler)
on_pnl = admin_model
.permission_filter(
_position_service.subscribei_pnl_data().Naggle(interval, scheduler),
p => p.Pos.AccountId)
.join(sstore, p => p.Pos.SecurityId)
.TableCheckedAutoCorrect(EqualityComparer<(SecurityImmutable? sec, PNLUnitImmutable data)>.Default)
.Where(t => t.has_changes())