We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustfmt
1 parent 88a3d9c commit 4c767fbCopy full SHA for 4c767fb
sentry/src/access.rs
@@ -33,7 +33,9 @@ pub async fn check_access(
33
34
// We're only sending a CLOSE
35
// That's allowed for the creator normally, and for everyone during the withdraw period
36
- if events.iter().all(is_close_event) && (session.uid == channel.creator || is_in_withdraw_period) {
+ if events.iter().all(is_close_event)
37
+ && (session.uid == channel.creator || is_in_withdraw_period)
38
+ {
39
return Ok(());
40
}
41
@@ -42,7 +44,6 @@ pub async fn check_access(
42
44
return Err(Error::OnlyCreatorCanCloseChannel);
43
45
46
-
47
if current_time > channel.valid_until {
48
return Err(Error::ChannelIsExpired);
49
0 commit comments