node-casbin
node-casbin copied to clipboard
feat: add support for g() in SyncedEnforcer
Based on @Zxilly 's work in: https://github.com/casbin/node-casbin/pull/303
Fixed the issue of generateGFuncion being async, therefore not working in syncedEnforcer.
I am not sure if the implementation is clear enough, but I created some tests which should cover the issue pretty well.
@nodece @Zxilly @Shivansh-yadav13 please review
@Zxilly @Shivansh-yadav13 plz review
Removed one unnecessary import.
@Zxilly @nodece @WenyXu plz review