Skip to content

Commit

Permalink
fix: handeling permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Pagan committed Apr 11, 2023
1 parent 966207b commit 325a78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class SocketServer extends EventEmitter{
//. check permission
if (this.permissionInstance) {
const permission = await this.permissionInstance.check(action, data, req, user_id)
if (!permission || permission.status === false) {
if (!permission || permission.error) {
// if (action == 'syncServer' && permission.database === true)
// if (action == 'syncServer')
// this.emit('createDocument', socket, data);
Expand Down

0 comments on commit 325a78a

Please sign in to comment.