Casbin Forum runs on Casnode, the open-source Discourse-style forum. Try the Casnode demo →
Casbin Forum

Anyone got any suggestions for performing RBAC checks on an api 'list' endpoint?
Currently, I'm thinking of using GetImplicitPermissionsForUser, then building a DB query filter from that.
The other option is to filter after querying, but that seems less efficient, especially with pagination as it might mean over-querying and filtering (and potentially re-querying to 'fill' the page)

5views
2users
1 minread

But the former could be an issue if the user has access to lots of resources, and if the pagination is performed here, it essentially moves sorting out of the DB 🙈

1 / 5
Aug 2025