Skip to content

Commit

Permalink
fix (CheckCaseMiddleware): wrong piece of code
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorMatt committed May 14, 2021
1 parent 1c7b628 commit 5a5bd9e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/adonisjs/app/Middleware/CheckCasePermission.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class CheckPermissionForGivenCase {
}

if (properties[0] == 'read') {
queryResult = await Database
queryResult = await Database
.from('cases')
.leftJoin('permissions', 'cases.id', 'permissions.table_id')
Expand Down Expand Up @@ -71,7 +70,6 @@ class CheckPermissionForGivenCase {
}

if (properties[0] == 'share') {
queryResult = await Database
queryResult = await Database
.from('cases')
.leftJoin('permissions', 'cases.id', 'permissions.table_id')
Expand Down

0 comments on commit 5a5bd9e

Please sign in to comment.