casbin / jcasbin

An authorization library that supports access control models like ACL, RBAC, ABAC in Java
https://casbin.org
Apache License 2.0
2.38k stars 461 forks source link

could enforcer support a List or Array #14

Closed namedHK closed 5 years ago

namedHK commented 5 years ago

now enforcer only can put object...,Can it be parsed into an array than put in enforcer

hsluoyz commented 5 years ago

@namedHK ,

jCasbin uses aviator as the matcher's expression parser. So all supported Aviator elements will also be available in jCasbin. AFAIK, Aviator supports to have array or list in the expression. But what operation will you need? get element (a[10]) or tell if an element is in the array? (if v in a)?

Here's Aviator's documentation: https://github.com/killme2008/aviator/wiki#%E5%BC%BA%E5%A4%A7%E7%9A%84-seq-%E5%BA%93. But I don't know if you can understand Chinese..

hsluoyz commented 5 years ago

Closed as stale.