@cocreate/socket-server 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/CoCreate.config.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.7.3](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.7.2...v1.7.3) (2023-04-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bump [@cocreate](https://github.com/cocreate) dependencies ([596d787](https://github.com/CoCreate-app/CoCreate-socket-server/commit/596d7878d7a3d2c9dbd136ac92c99621e616aaed))
|
|
7
|
+
|
|
8
|
+
## [1.7.2](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.7.1...v1.7.2) (2023-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* handeling permission error ([325a78a](https://github.com/CoCreate-app/CoCreate-socket-server/commit/325a78a6bb6114b199088dcb8850b3e486e4cea4))
|
|
14
|
+
|
|
1
15
|
## [1.7.1](https://github.com/CoCreate-app/CoCreate-socket-server/compare/v1.7.0...v1.7.1) (2023-04-11)
|
|
2
16
|
|
|
3
17
|
|
package/CoCreate.config.js
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -149,7 +149,7 @@ class SocketServer extends EventEmitter{
|
|
|
149
149
|
//. check permission
|
|
150
150
|
if (this.permissionInstance) {
|
|
151
151
|
const permission = await this.permissionInstance.check(action, data, req, user_id)
|
|
152
|
-
if (!permission || permission.
|
|
152
|
+
if (!permission || permission.error) {
|
|
153
153
|
// if (action == 'syncServer' && permission.database === true)
|
|
154
154
|
// if (action == 'syncServer')
|
|
155
155
|
// this.emit('createDocument', socket, data);
|