node-casbin / mongoose-adapter

Mongoose adapter for Casbin
https://github.com/casbin/node-casbin
Apache License 2.0
33 stars 32 forks source link

Update policy: implement the UpdatableAdapter interface in this adapter #48

Closed Pyav123 closed 3 years ago

Pyav123 commented 3 years ago

Which method I can use from adapter if I want to update policy ?

hsluoyz commented 3 years ago

We need to implement the UpdatableAdapter interface in this adapter, see: https://github.com/casbin/node-casbin/issues/229

hsluoyz commented 3 years ago

@Zxilly @Gabriel-403

Pyav123 commented 3 years ago

@hsluoyz , I didn't mention clearly , but I am looking for update policy using mongoose adapter , I could see add and remove ,but don't see any method for update in adapter code , correct me if I am wrong and is there any way to achieve this?

Zxilly commented 3 years ago

@Pyav123 Hello, I'm the maintainer of this library. You do not need to do anything for this purpose. As for now, this function didn't exist in this adapter, and we will later add it.

github-actions[bot] commented 3 years ago

:tada: This issue has been resolved in version 3.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: