updated websockets to send global messages to any use w/ read access
This commit is contained in:
parent
bbc646b9c2
commit
7a970aaff0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue