casbin/mongodb-adapter

Error on UpdateFilteredPolicies *mongodbadapter.adapter is not persist.UpdatableAdapter: missing method UpdateFilteredPolicies

gabriele86 opened this issue · 3 comments

When I try to call UpdateFilteredPolicies on *Enforcer, I get the following error:

panic: interface conversion: *mongodbadapter.adapter is not persist.UpdatableAdapter: missing method UpdateFilteredPolicies

Currently using:
"github.com/casbin/casbin/v2" v2.41.0
"github.com/casbin/mongodb-adapter/v3" v3.2.1

mongodb-adapter didn't support to update policy yet. I will raise a PR to add this feature.