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

Hii guyss, sorry please currently, can we add array of permissions in one row of a role with casbin? I've checked the documentation and I don't think I had a line that described that... using addpermissions to roles create multiple rows of permission to the role in my db table

2views
2users
1 minread

But the deletepermission api isn't deleting this column when filtered, though it's returning true on deletion

we have test cases for it. take a look at it

probably your usage is wrong

Yeah, the test cases worked for me for data stored without quotations

These are my tests, the third one returns true, but it's not deleting after using the deletepermissionforuser api

code.png

And this is the table row I'm filtering

Screenshot_2024-03-01_at_4.19.02_pm.png

can you send it as a github issue? with everything included?

1 / 8
Mar 2024