node-casbin / prisma-adapter

Prisma adapter for Casbin
Apache License 2.0
29 stars 16 forks source link

feat: fix astMap undefined issue #54

Closed Dr-Greg closed 8 months ago

Dr-Greg commented 8 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 8 months ago

@nodece @Shivansh-yadav13 please review

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

github-actions[bot] commented 8 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: