node-casbin / prisma-adapter

Prisma adapter for Casbin
Apache License 2.0
31 stars 18 forks source link

feat: fix astMap undefined issue #54

Closed Dr-Greg closed 10 months ago

Dr-Greg commented 11 months ago

Fix: https://github.com/node-casbin/prisma-adapter/issues/55

The existence check with ! alone is insufficient to ensure that astMap is not undefined. The model.get() function can still return undefined, necessitating an explicit check for its presence.

casbin-bot commented 11 months ago

@nodece @Shivansh-yadav13 please review

CLAassistant commented 11 months ago

CLA assistant check
All committers have signed the CLA.

github-actions[bot] commented 10 months ago

:tada: This PR is included in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: