Walaa wrote:
I think you can call the inner public methods of the Authorizer as follows.
myEntity.AuthorizerToUse.CanGetFieldValue(...) & CanSetFieldValue(...),
passing the fieldIndex of the field to check.
It looks like you need to pass in the entity for this to work, so you would have to make a call like
myEntity.AuthorizerToUse.CanGetFieldValue(myEntity, fieldIndex)
This isn't horrible, but seems like it is more cumbersome than it needs to be. It would be great to just need to call:
myEntity.CanGetFieldValue(fieldIndex)
or
myEntity.Fields(fieldIndex).CanGetFieldValue()
Although its a bit late to request new features at this point, I'd like to request that there be interface elements on the Entity and EntityField which delegate to these callls to the AuthorizerToUse.