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.61k stars 218 forks source link

[bug] When using ‘watcherEx’, deletion does not trigger it; you need to configure a ‘watcher’ for it to work. #465

Closed Lce-Lemon closed 12 months ago

Lce-Lemon commented 12 months ago

The issue is caused by incorrect conditional statements in this code.

see removePolicyInternal and removePoliciesInternal

image

casbin-bot commented 12 months ago

@nodece @Shivansh-yadav13

hsluoyz commented 12 months ago

@Lce-Lemon fixed in: https://github.com/casbin/node-casbin/releases/tag/v5.28.0