updated websockets to send global messages to any use w/ read access

This commit is contained in:
Brad Rydzewski 2014-07-13 15:23:52 -07:00
parent bbc646b9c2
commit 7a970aaff0

View file

@ -78,7 +78,7 @@ func (h *WsHandler) WsUser(w http.ResponseWriter, r *http.Request) error {
// user must have read access to the repository
// in order to pass this message along
if ok, _ := h.perms.Member(user, work.Repo); !ok {
if role := h.perms.Find(user, work.Repo); role.Read {
break
}