Skip to content

Commit

Permalink
add system flag to conversation component template and access query
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoliduena committed Feb 3, 2025
1 parent aa68ff0 commit 3ab94b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export const conversationComponentTemplate: ClusterComponentTemplate['component_
public: {
type: 'boolean',
},
system: {
type: 'boolean',
},
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export function getAccessQuery({
filter: [
{
bool: {
should: [{ term: { public: true } }, ...getUserAccessFilters(user)],
should: [
{ term: { public: true } },
{ term: { system: true } },
...getUserAccessFilters(user),
],
minimum_should_match: 1,
},
},
Expand Down

0 comments on commit 3ab94b5

Please sign in to comment.