Start api revamp

This commit is contained in:
Daniel 2018-09-21 16:38:18 +02:00
parent 6bee0bf2d7
commit b246453a83
16 changed files with 452 additions and 45 deletions

View file

@ -129,7 +129,7 @@ func (c *Controller) Put(r record.Record) (err error) {
// process subscriptions
for _, sub := range c.subscriptions {
if sub.q.Matches(r) {
if r.Meta().CheckPermission(sub.local, sub.internal) && sub.q.Matches(r) {
select {
case sub.Feed <- r:
default: