No, such a mechanism isn't implemented in decl_auth. The reason is that
decl_auth really only enforces access control only on row/object level, not on
attribute level. That said, you could use STI to separate attributes to allow
from those not allowed. Is that a valid option for you?
Steffen
Actually, I was refering to splitting the information into more than one
model. Each model can have different privileges. E.g. public information
could be stored in :products, private details in :private_product_data. Both
models could be connected through a has_one association. This is only a valid
approach if a clear distinction can be made, though.
> You don't know of any
> authorization program that can auto modify the select statement? Do
> you know if DA could be modified to function in this way?
It should be possible to extend decl_auth in this way, but it would need
considerable effort. Also, I'm not sure, how the API would need to change to
include queries on which columns to allow access to. If you like to invest on
that, I'm happy to offer support, of course.
Steffen