diff --git a/reposilite-frontend/src/store/session.js b/reposilite-frontend/src/store/session.js index 528ecb3a5..59b8e990d 100644 --- a/reposilite-frontend/src/store/session.js +++ b/reposilite-frontend/src/store/session.js @@ -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() {