Skip to content

Commit c2431de

Browse files
authored
Merge branch 'dev' into remove-list-timeout
2 parents 358bd6f + 8ba019e commit c2431de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/src/access.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub async fn check_access(
7272
}
7373

7474
// Only the creator can send a CLOSE
75-
if is_creator && events.iter().any(is_close_event) {
75+
if !is_creator && events.iter().any(is_close_event) {
7676
return Err(Error::OnlyCreatorCanCloseChannel);
7777
}
7878

0 commit comments

Comments
 (0)