Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d1898339b1 |
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"reflect"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CompanyPrivileges contains the privileges for a combination of email address and company id
|
// CompanyPrivileges contains the privileges for a combination of email address and company id
|
||||||
@@ -85,6 +86,8 @@ func (h *PrivilegeHandler) Process(msg interface{}) bool {
|
|||||||
if ev, ok := msg.(*PrivilegeAdded); ok {
|
if ev, ok := msg.(*PrivilegeAdded); ok {
|
||||||
h.setPrivileges(ev)
|
h.setPrivileges(ev)
|
||||||
return true
|
return true
|
||||||
|
} else {
|
||||||
|
fmt.Printf("Got unexpected message type (%s): '%+v'\n", reflect.TypeOf(msg).String(), msg)
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user