Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 8 additions & 49 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev/tool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@hcengineering/model-task": "workspace:^0.7.0",
"@hcengineering/model-activity": "workspace:^0.7.0",
"@hcengineering/model-lead": "workspace:^0.7.0",
"@hcengineering/postgres": "workspace:^0.7.19",
"@hcengineering/postgres": "workspace:^0.7.21",
"@hcengineering/account-client": "workspace:^0.7.20",
"@hcengineering/mongo": "workspace:^0.7.16",
"@hcengineering/platform": "workspace:^0.7.19",
Expand Down
12 changes: 12 additions & 0 deletions foundations/server/packages/postgres/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"name": "@hcengineering/postgres",
"entries": [
{
"version": "0.7.21",
"tag": "@hcengineering/postgres_v0.7.21",
"date": "Tue, 02 Dec 2025 04:08:02 GMT",
"comments": {
"patch": [
{
"comment": "fix collaborator security query"
}
]
}
},
{
"version": "0.7.20",
"tag": "@hcengineering/postgres_v0.7.20",
Expand Down
9 changes: 8 additions & 1 deletion foundations/server/packages/postgres/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log - @hcengineering/postgres

This log was last generated on Wed, 26 Nov 2025 16:04:43 GMT and should not be manually modified.
This log was last generated on Tue, 02 Dec 2025 04:08:02 GMT and should not be manually modified.

## 0.7.21
Tue, 02 Dec 2025 04:08:02 GMT

### Patches

- fix collaborator security query

## 0.7.20
Wed, 26 Nov 2025 16:04:43 GMT
Expand Down
2 changes: 1 addition & 1 deletion foundations/server/packages/postgres/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcengineering/postgres",
"version": "0.7.20",
"version": "0.7.21",
"main": "lib/index.js",
"svelte": "src/index.ts",
"types": "types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion foundations/server/packages/postgres/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ abstract class PostgresAdapterBase implements DbAdapter {
const collabSec = getClassCollaborators(this.modelDb, this.hierarchy, _class)
if (collabSec?.provideSecurity === true && [AccountRole.Guest, AccountRole.ReadOnlyGuest].includes(acc.role)) {
const collab = `OR EXISTS (SELECT 1 FROM ${translateDomain(DOMAIN_COLLABORATOR)} collab_sec WHERE collab_sec."workspaceId" = ${vars.add(this.workspaceId, '::uuid')} AND collab_sec."attachedTo" = ${domain}._id AND collab_sec.collaborator = '${acc.uuid}')`
return `AND (${res} + ${collab})`
return `AND (${res} ${collab})`
}
return `AND (${res})`
}
Expand Down
2 changes: 1 addition & 1 deletion pods/backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"@hcengineering/analytics": "workspace:^0.7.17",
"@hcengineering/analytics-service": "workspace:^0.7.17",
"@hcengineering/mongo": "workspace:^0.7.16",
"@hcengineering/postgres": "workspace:^0.7.19"
"@hcengineering/postgres": "workspace:^0.7.21"
}
}
2 changes: 1 addition & 1 deletion pods/fulltext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@hcengineering/middleware": "workspace:^0.7.21",
"@hcengineering/server-client": "workspace:^0.7.16",
"@hcengineering/server-storage": "workspace:^0.7.16",
"@hcengineering/postgres": "workspace:^0.7.19",
"@hcengineering/postgres": "workspace:^0.7.21",
"@hcengineering/mongo": "workspace:^0.7.16",
"@hcengineering/kafka": "workspace:^0.7.18",
"@hcengineering/communication-server": "workspace:^0.7.12",
Expand Down
2 changes: 1 addition & 1 deletion pods/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@hcengineering/platform": "workspace:^0.7.19",
"@hcengineering/pod-telegram-bot": "workspace:^0.7.0",
"@hcengineering/pod-translate": "workspace:^0.7.0",
"@hcengineering/postgres": "workspace:^0.7.19",
"@hcengineering/postgres": "workspace:^0.7.21",
"@hcengineering/rpc": "workspace:^0.7.17",
"@hcengineering/server": "workspace:^0.7.17",
"@hcengineering/server-ai-bot": "workspace:^0.7.0",
Expand Down
2 changes: 1 addition & 1 deletion server/account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@hcengineering/mongo": "workspace:^0.7.16",
"@hcengineering/postgres": "workspace:^0.7.19",
"@hcengineering/postgres": "workspace:^0.7.21",
"mongodb": "^6.16.0",
"postgres": "^3.4.7",
"@hcengineering/platform": "workspace:^0.7.19",
Expand Down
2 changes: 1 addition & 1 deletion server/workspace-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@hcengineering/analytics": "workspace:^0.7.17",
"@hcengineering/account-client": "workspace:^0.7.20",
"@hcengineering/server-backup": "workspace:^0.7.0",
"@hcengineering/postgres": "workspace:^0.7.19",
"@hcengineering/postgres": "workspace:^0.7.21",
"@hcengineering/mongo": "workspace:^0.7.16"
}
}
2 changes: 1 addition & 1 deletion services/rating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@hcengineering/server-client": "workspace:^0.7.16",
"@hcengineering/account-client": "workspace:^0.7.20",
"@hcengineering/server-storage": "workspace:^0.7.16",
"@hcengineering/postgres": "workspace:^0.7.19",
"@hcengineering/postgres": "workspace:^0.7.21",
"@hcengineering/mongo": "workspace:^0.7.16",
"@hcengineering/kafka": "workspace:^0.7.18",
"@hcengineering/communication-server": "workspace:^0.7.12",
Expand Down
Loading