Skip to content

Commit

Permalink
GH-1953 Fix permission check used to display the delete button (#1954)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi authored Oct 5, 2023
1 parent f4bfdb8 commit f1554e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reposilite-frontend/src/store/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const hasPermissionTo = (path, permission) => {
}
return details.value
?.routes
?.find(route => path.startsWith(route.path) && route.permission.identifier == permission) == true
?.find(route => path.startsWith(route.path) && route.permission.identifier === permission) !== undefined
}

export function useSession() {
Expand Down

0 comments on commit f1554e4

Please sign in to comment.