mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-16 18:34:28 +02:00
updated websockets to send global messages to any use w/ read access
This commit is contained in:
parent
bbc646b9c2
commit
7a970aaff0
@ -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…
x
Reference in New Issue
Block a user