Skip to content

Commit e3723d6

Browse files
committed
fix: change permission check for fetching channel webhooks
1 parent 5f84daa commit e3723d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/delta/src/routes/channels/webhook_fetch_all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub async fn fetch_webhooks(
2222
let mut query = DatabasePermissionQuery::new(db, &user).channel(&channel);
2323
calculate_channel_permissions(&mut query)
2424
.await
25-
.throw_if_lacking_channel_permission(ChannelPermission::ViewChannel)?;
25+
.throw_if_lacking_channel_permission(ChannelPermission::ManageWebhooks)?;
2626

2727
Ok(Json(
2828
db.fetch_webhooks_for_channel(channel.id())

0 commit comments

Comments
 (0)