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.
1 parent 5f84daa commit e3723d6Copy full SHA for e3723d6
crates/delta/src/routes/channels/webhook_fetch_all.rs
@@ -22,7 +22,7 @@ pub async fn fetch_webhooks(
22
let mut query = DatabasePermissionQuery::new(db, &user).channel(&channel);
23
calculate_channel_permissions(&mut query)
24
.await
25
- .throw_if_lacking_channel_permission(ChannelPermission::ViewChannel)?;
+ .throw_if_lacking_channel_permission(ChannelPermission::ManageWebhooks)?;
26
27
Ok(Json(
28
db.fetch_webhooks_for_channel(channel.id())
0 commit comments