Skip to content

Commit d8fa07f

Browse files
committed
fix: only creator should close channel
1 parent bc09c10 commit d8fa07f

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)