Skip to content

Commit 8ba019e

Browse files
authored
Merge pull request #292 from samparsky/fix-is-creator
fix: only creator should close channel
2 parents bc09c10 + d8fa07f commit 8ba019e

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)