casbin / Casbin.NET

An authorization library that supports access control models like ACL, RBAC, ABAC in .NET (C#)
https://casbin.org
Apache License 2.0
1.13k stars 110 forks source link

Apply politic to objects of different class going to excaption, but in posible in Go version #316

Closed palich12 closed 3 months ago

palich12 commented 1 year ago

When I try use some politic for excluded attribute/ For example, if try apply ruses for list of different classes objects, end some objects haven't used fields, I get exaptation. But it is correctly situation for Go library.

casbin-bot commented 1 year ago

@sagilio @sociometry @AsakusaRinne

sagilio commented 1 year ago

May I ask which version you are using in your project? Do you mean to pass some Object of the different class to the Enforce method?

palich12 commented 1 year ago

May I ask which version you are using in your project? Do you mean to pass some Object of the different class to the Enforce method?

I use 1.13.0 version. I get it when write in policy some field, that out of class of my objects

sagilio commented 1 year ago

@palich12 Could you provide a sample or test case about this issue?

hsluoyz commented 3 months ago

Closed as stale