You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use above code and model conf , if have't e.SetFieldIndex("p", "dom", 1) ,the programme will not report any error , and just return an empty result , by the way, it seems that func GetNamedPermissionsForUser only use the first elment of domain list.
Describe the solution you'd like
Throw an error like "dom index is not set, please use enforcer.SetFieldIndex() to set index" or support use dynamic domainIndex
Describe alternatives you've considered
Create a new func that support return err msg or just rewrite this func
Additional context
The text was updated successfully, but these errors were encountered:
Want to prioritize this issue? Try:
Is your feature request related to a problem? Please describe.
When I use above code and model conf , if have't
e.SetFieldIndex("p", "dom", 1)
,the programme will not report any error , and just return an empty result , by the way, it seems that func GetNamedPermissionsForUser only use the first elment of domain list.Describe the solution you'd like
Throw an error like "dom index is not set, please use enforcer.SetFieldIndex() to set index" or support use dynamic domainIndex
Describe alternatives you've considered
Create a new func that support return err msg or just rewrite this func
Additional context
The text was updated successfully, but these errors were encountered: