From 3f7ed216e86f2d7464ec233bbf1cdb95c9ade6d2 Mon Sep 17 00:00:00 2001 From: dal Date: Thu, 16 Jan 2025 10:39:55 -0700 Subject: [PATCH] permission_group string fix --- .../routes/ws/threads_and_messages/post_thread/post_thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/routes/ws/threads_and_messages/post_thread/post_thread.rs b/api/src/routes/ws/threads_and_messages/post_thread/post_thread.rs index d23215e19..94b5d5955 100644 --- a/api/src/routes/ws/threads_and_messages/post_thread/post_thread.rs +++ b/api/src/routes/ws/threads_and_messages/post_thread/post_thread.rs @@ -779,7 +779,7 @@ async fn get_restricted_user_datasets_with_metadata( dataset_permissions::permission_id .eq(permission_groups_to_users::permission_group_id), ) - .filter(dataset_permissions::permission_type.eq("group")) + .filter(dataset_permissions::permission_type.eq("permission_group")) .filter(datasets::deleted_at.is_null()) .filter(datasets::enabled.eq(true)) .select((Dataset::as_select(), DataSource::as_select()))