casbin / node-casbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Node.js and Browser
https://casbin.org
Apache License 2.0
2.58k stars 216 forks source link

[Bug] The lack of a constructor results in the default configuration not taking effect. #466

Closed Lce-Lemon closed 10 months ago

Lce-Lemon commented 10 months ago

https://github.com/casbin/node-casbin/blob/8be61872779729b3c2ca2054a29d24e5a0436349/src/enforcer.ts#L25

casbin-bot commented 10 months ago

@nodece @Shivansh-yadav13

hsluoyz commented 10 months ago

@Lce-Lemon why close?

Lce-Lemon commented 10 months ago

@Lce-Lemon why close?

I remember encountering an issue with the prisma-adapter where automatic saving wasn't working. The documentation states that automatic saving is enabled by default, but I'm not entirely sure. Therefore, I closed this issue.