update huly.server (#10270)

* fix collaborator security query

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>

* update server/postgres version

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>

---------

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov
2025-12-02 12:53:38 +07:00
committed by GitHub
parent 8a21c04739
commit 2323a9a04e
12 changed files with 37 additions and 59 deletions
+8 -49
View File
@@ -2010,7 +2010,7 @@ importers:
specifier: workspace:^0.7.0
version: link:../../services/rating
'@hcengineering/postgres':
specifier: workspace:^0.7.19
specifier: workspace:^0.7.21
version: link:../../foundations/server/packages/postgres
'@hcengineering/rank':
specifier: workspace:^0.7.17
@@ -29987,7 +29987,7 @@ importers:
specifier: workspace:^0.7.19
version: link:../../foundations/core/packages/platform
'@hcengineering/postgres':
specifier: workspace:^0.7.19
specifier: workspace:^0.7.21
version: link:../../foundations/server/packages/postgres
'@hcengineering/server-core':
specifier: workspace:^0.7.18
@@ -30314,7 +30314,7 @@ importers:
specifier: workspace:^0.7.19
version: link:../../foundations/core/packages/platform
'@hcengineering/postgres':
specifier: workspace:^0.7.19
specifier: workspace:^0.7.21
version: link:../../foundations/server/packages/postgres
'@hcengineering/server-client':
specifier: workspace:^0.7.16
@@ -30701,7 +30701,7 @@ importers:
specifier: workspace:^0.7.0
version: link:../../services/translate
'@hcengineering/postgres':
specifier: workspace:^0.7.19
specifier: workspace:^0.7.21
version: link:../../foundations/server/packages/postgres
'@hcengineering/rpc':
specifier: workspace:^0.7.17
@@ -35284,7 +35284,7 @@ importers:
specifier: workspace:^0.7.19
version: link:../../foundations/core/packages/platform
'@hcengineering/postgres':
specifier: workspace:^0.7.19
specifier: workspace:^0.7.21
version: link:../../foundations/server/packages/postgres
'@hcengineering/server-core':
specifier: workspace:^0.7.18
@@ -36691,7 +36691,7 @@ importers:
specifier: workspace:^0.7.19
version: link:../../foundations/core/packages/platform
'@hcengineering/postgres':
specifier: workspace:^0.7.19
specifier: workspace:^0.7.21
version: link:../../foundations/server/packages/postgres
'@hcengineering/server-backup':
specifier: workspace:^0.7.0
@@ -40149,7 +40149,7 @@ importers:
specifier: workspace:^0.7.19
version: link:../../foundations/core/packages/platform
'@hcengineering/postgres':
specifier: workspace:^0.7.19
specifier: workspace:^0.7.21
version: link:../../foundations/server/packages/postgres
'@hcengineering/rating':
specifier: workspace:^0.7.0
@@ -61252,7 +61252,7 @@ snapshots:
node-loader@2.0.0(webpack@5.103.0):
dependencies:
loader-utils: 2.0.4
webpack: 5.103.0
webpack: 5.103.0(@swc/core@1.15.3)(esbuild@0.25.12)(webpack-cli@5.1.4)
node-localstorage@2.2.1:
dependencies:
@@ -63292,15 +63292,6 @@ snapshots:
optionalDependencies:
'@swc/core': 1.15.3
terser-webpack-plugin@5.3.14(webpack@5.103.0):
dependencies:
'@jridgewell/trace-mapping': 0.3.31
jest-worker: 27.5.1
schema-utils: 4.3.3
serialize-javascript: 6.0.2
terser: 5.44.1
webpack: 5.103.0
terser@5.44.1:
dependencies:
'@jridgewell/source-map': 0.3.11
@@ -63966,38 +63957,6 @@ snapshots:
webpack-sources@3.3.3: {}
webpack@5.103.0:
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.8
'@types/json-schema': 7.0.15
'@webassemblyjs/ast': 1.14.1
'@webassemblyjs/wasm-edit': 1.14.1
'@webassemblyjs/wasm-parser': 1.14.1
acorn: 8.15.0
acorn-import-phases: 1.0.4(acorn@8.15.0)
browserslist: 4.28.0
chrome-trace-event: 1.0.4
enhanced-resolve: 5.18.3
es-module-lexer: 1.7.0
eslint-scope: 5.1.1
events: 3.3.0
glob-to-regexp: 0.4.1
graceful-fs: 4.2.11
json-parse-even-better-errors: 2.3.1
loader-runner: 4.3.1
mime-types: 2.1.35
neo-async: 2.6.2
schema-utils: 4.3.3
tapable: 2.3.0
terser-webpack-plugin: 5.3.14(webpack@5.103.0)
watchpack: 2.4.4
webpack-sources: 3.3.3
transitivePeerDependencies:
- '@swc/core'
- esbuild
- uglify-js
webpack@5.103.0(@swc/core@1.15.3):
dependencies:
'@types/eslint-scope': 3.7.7
+1 -1
View File
@@ -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",
@@ -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",
@@ -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
@@ -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",
@@ -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})`
}
+1 -1
View File
@@ -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"
}
}
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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"
}
}
+1 -1
View File
@@ -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",