Closed flusflas closed 4 years ago
Hmm, never really questioned whether Casbin accepts an arbitrary number of values. Yes, this adapter only save 6 values per policy. Not sure why it is 6 but it ought to be enough for 99% of all use cases out there.
What use case are you having?
It listed here the supported models: https://casbin.org/docs/en/supported-models
and none of them need more than 6 values.
Ok, I just wanted to know if there was any limitation behind this. I shouldn't need more than 6 values, but I wanted to know how limited I was. Thanks!
The number of values has to be a fixed value. I thought 6 would be enough for 99.9% cases. If you need > 6 values, you can modify the source code.
I've noticed that only 6 (and always 6) parameters are allowed in policies, although Casbin accepts (I think) an arbitrary number of values. These 6 values are hard coded, even though it could be easily parametrized. Is there any performance/limitation reason for this implementation?